[mapserver-users] Getting introduced to MapScript

2012-08-01 Thread Luís de Sousa
Dear all,

I'm starting to dive into MapScript but am feeling a bit lost. The
documentation is scant and so far I haven't been able to find a proper API
reference. Right now I'm just going through the code itself and things are
going rather slowly.

Is there a thorough API reference out there? And where is the right place to
ask for help? Here at this forum?

Thank you,

Luís



--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/Getting-introduced-to-MapScript-tp4992463.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


Re: [mapserver-users] Getting introduced to MapScript

2012-08-02 Thread Luís de Sousa
Hi Stephen, thank you for the reply.

Yes I've went through those pages already. There you learn a few things, but
not how to set up a MapFile entirely.  How to set up the SHAPEPATH for a
mapObj for instance, or the DATA and TYPE for a layerObj.

I'm presently using Python, not that I like the language, but I've been
learning quite a bit with the MapScript code in PyWPS.

Luís



--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/Getting-introduced-to-MapScript-tp4992463p4992604.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


Re: [mapserver-users] Getting introduced to MapScript

2012-08-03 Thread Luís de Sousa
Thank you Stephen, loading an existing MapFile and looking into its contents
should help indeed, but it is a bit frustrating to see such basic things
lacking in the documentation.

In any case, I'd ask again if this is the right place to ask help for on
MapScript, or if there's another forum dedicated to it.

Thank you,

Luís



--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/Getting-introduced-to-MapScript-tp4992463p4992863.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


Re: [mapserver-users] Getting introduced to MapScript

2012-08-03 Thread Luís de Sousa
Hi Cristiano, thank you for the reply.

I'm precisely trying to build a wrapper API for the specific where you a GML
file and want to automatically publish it through MapServer.

If I understand correctly from your message there is no way set the layer
TYPE attribute directly. Is this the same with the DATA attribute? In such
case how can it be set?

Thank you,

Luís


On 2 August 2012 14:37, Cristiano Sumariva  wrote:
> Well if you have time to do it, I strong suggest you to create a thin
> wrapper about mapscript. This is for case you can have a safe, programmer
> friendly API.
> Or at least create a Factory class for some mapscript constructs. This
> will
> save you of much trouble in future when you going need change something.
>
> For your commented object layerObj the mapscript function or method to
> creating a new layer would be new layer( parent ).
> What would lead you to map draw failure because layerobj type was not set.
>
> So use a factory like LayerFactory.createPolygon( mapobj ) that will set
> things properly.
>
> I guess the minimum mapfile stuff required are:
> - map size output
> - map ground coordinates position
> - one layer obj( a lot of attributes set here )
> -- one class at layerobj( a few atrtibutes set here )
> --- one style at above class( presentation, color stuff here )
>
> optional
> if going work with different projections
> - the map projetion attribute
> - for each layer the projection attribute.
>
> Again would be very nice to have a wrapper that raise error you if have a
> layer without projection attribute in presence of it at map object.



--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/Getting-introduced-to-MapScript-tp4992463p4992866.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


Re: [mapserver-users] Getting introduced to MapScript

2012-08-07 Thread Luís de Sousa
On 3 August 2012 13:34, Cristiano Sumariva  wrote:
> You can set the type and data attributes directly, in fact you need do that
> for the layerobj works properly.
> After you create the layerobj you need set those attributes directly.
>
> How to set them depends on language you use.
> With PHP Mapscript you can do this ( that would be similar to other
> languages ):
> $layer = ms_newLayerObj( mapOwner );
> // here the weird thing the layerObj constructor did not set the layer type
> not even required it to initialize the layerobj.
> $layer->set( 'type', MS_LAYER_POLYGON );
> $layer->set( 'data', '/absolute/or/../relative/toyourfile.gml' );
>

Dear Cristiano, thank you for the reply. As you can see below, the set
method is raising exceptions when I invoke it the way you suggest.
Apparently, attributes like NAME or SHAPEPATH are unknown to
MapScript. This was run directly in the Python console.

Any other suggestions are welcome. Thank you,

Luís

>>> from mapscript import *
>>> mapObj = mapObj()
>>> mapObj.setExtent(91979,436326,92617,437659.5)
0
>>> mapObj.setProjection("epsg:28992")
0
>>> newLayer = layerObj(mapObj)
>>> newLayer.setMetaData("DESCRIPTION", "MyLayer")
0
>>> newLayer.setMetaData("ows_title", "MyLayer")
0
>>> newLayer.set("NAME", "MyLayer")
Traceback (most recent call last):
  File "", line 1, in 
  File 
"/usr/local/lib/python2.7/dist-packages/MapScript-6.0.1-py2.7-linux-x86_64.egg/mapscript.py",
line 1192, in 
__getattr__ = lambda self, name: _swig_getattr(self, layerObj, name)
  File 
"/usr/local/lib/python2.7/dist-packages/MapScript-6.0.1-py2.7-linux-x86_64.egg/mapscript.py",
line 34, in _swig_getattr
raise AttributeError,name
AttributeError: set
NameError: name 'self' is not defined
>>> mapObj.set("SHAPEPATH", "/tmp/shapes")
Traceback (most recent call last):
  File "", line 1, in 
  File 
"/usr/local/lib/python2.7/dist-packages/MapScript-6.0.1-py2.7-linux-x86_64.egg/mapscript.py",
line 1434, in 
__getattr__ = lambda self, name: _swig_getattr(self, mapObj, name)
  File 
"/usr/local/lib/python2.7/dist-packages/MapScript-6.0.1-py2.7-linux-x86_64.egg/mapscript.py",
line 34, in _swig_getattr
raise AttributeError,name
AttributeError: set
>>>
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Error compiling Mapserver 6.0.3

2012-08-27 Thread Luís de Sousa
Dear all,

I'm trying to compile Mapserver 6.0.3 on Ubuntu Server 10.10 LTS, but I'm
getting a compile error on maplexer.l. I reproduce below the outputs of
configure and make; any insight on the issue is very welcome.

Thank you,

Luís

$ ./configure --with-ogr=/usr/local/bin/gdal-config
--with-gdal=/usr/local/bin/gdal-config --with-wfsclient --with-wmsclient
--enable-debug --with-curl-config=/usr/bincurl-config --with-proj=/usr/lib/
--with-tiff --with-gd=/usr/lib/ --with-jpeg --with-freetype=/usr/include/
--with-threads --with-wcs --with-libiconv=/usr
--with-geos=/usr/local/bin/geos-config --with-libiconv=/usr
--with-xml2-config=/usr/bin/xml2-config --with-sos
--with-postgis=/usr/lib/postgresql/9.1/bin/pg_config
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... no
checking for lex... no
checking for yywrap in -lfl... no
checking for yywrap in -ll... no
checking for bison... no
checking for byacc... byacc
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 strlcpy... no
checking for vsnprintf... yes
MapServer Version from mapserver.h: '6.0.3'
checking if pkg-config path is provided... checking for pkg-config...
/usr/bin/pkg-config
checking for Freetype2.x in /usr/include/... checking for FT_Init_FreeType
in -lfreetype... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking ft2build.h usability... yes
checking ft2build.h presence... yes
checking for ft2build.h... yes
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
checking png.h usability... yes
checking png.h presence... yes
checking for png.h... yes
using libpng from system libs.
checking setjmp.h usability... yes
checking setjmp.h presence... yes
checking for setjmp.h... yes
configure: checking where GIF is installed...
checking for DGifOpenFileHandle in -lgif... yes
checking gif_lib.h usability... yes
checking gif_lib.h presence... yes
checking for gif_lib.h... yes
using libgif from system libs.
configure: checking whether we should include JPEG support...
checking for jpeg_read_header in -ljpeg... yes
checking jpeglib.h usability... yes
checking jpeglib.h presence... yes
checking for jpeglib.h... 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.28 or higher...
checking for gdImageCreatePaletteFromTrueColor in -lgd... yes
using libgd 2.0.28 (or higher) from -L/usr/lib/ -lgd -ljpeg  -lpng
-lz -lXpm -lX11 
checking for gdImageGif in -lc... yes
checking for gdImagePng in -lc... yes
checking for gdImageJpeg in -lc... yes
checking for gdImageWBMP in -lc... yes
checking for gdImageStringFT in -lc... yes
checking for gdImageSetResolution in -lc... no
checking for gdImageOpenPolygon in -lc... yes
checking for gdImageGifPtr in -lc... yes
checking for gdFontGetTiny in -lc... yes
checking whether gdImageGetTrueColorPixel is declared... yes
checking for gdImageGetTrueColorPixel in -lc... yes
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 -DGD_HAS_GET_TRUE_COLOR_PIXEL) from /usr/lib/.
checking if FTGL support requested... no
checking if OGL support requested... no
configure: checking where EXPAT is installed...
checking for XML_ParserCreate in -lexpat... yes
checking expat

Re: [mapserver-users] Error compiling Mapserver 6.0.3

2012-08-27 Thread Luís de Sousa
Hi Steve, here's the flex version:

$ flex -V
flex 2.5.35

This is the version I got from the repos. Thanks for helping,

Luís



--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/Error-compiling-Mapserver-6-0-3-tp4998005p4998228.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


Re: [mapserver-users] Error compiling Mapserver 6.0.3

2012-08-28 Thread Luís de Sousa
Hi Cristiano, after removing byacc I get this in the configuration:

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... no
checking for byacc... no

Then running make I get the exact same error as before. Thank you,

Luís

On 27 August 2012 19:01, Cristiano Sumariva  wrote:
> Your configure reports a byacc. Try remove it and run again.
> checking for byacc... byacc
>
> This is an output for 5.6.7 mapserver that compiled on my older Ubuntu
> system.
>
> checking for flex... no
> checking for lex... no
> checking for yywrap in -lfl... no
> checking for yywrap in -ll... no
> checking for bison... no
> checking for byacc... no
>
> Hope it helps some.
>
>
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Error compiling Mapserver 6.0.3

2012-08-28 Thread Luís de Sousa
Hi Thomas,

I tried to uninstall flex but I get the same error. Where can I get
maplexer.c and where should  I copy it too?

Thank you for the help,

Luís

On 28 August 2012 09:36, thomas bonfort  wrote:
> Luis,
> Our repo contains a generated version of maplexer.c that should not
> need to be re-generated by end users. You should be able to either
> uninstall flex and/or copy back the original version of maplexer.c to
> get going.
>
> --
> thomas
>
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Error compiling Mapserver 6.0.3

2012-08-28 Thread Luís de Sousa
Hi again Thomas,

Indeed the file is there. So now 2 questions:
a) where do have to copy it to?
b) how do I run make so that it doesn't fire flex?

Thank you,

Luís

On 28 August 2012 11:06, thomas bonfort  wrote:
> From the original tarball
>
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Error compiling Mapserver 6.0.3

2012-08-28 Thread Luís de Sousa
Hi again,

I'm still getting the same error, please see below.

Thank you,

Luís

$ touch maplexer.c

$ sudo make
gcc -c -g  -fPIC -Wall -DHAVE_VSNPRINTF -DNEED_STRLCPY
-DNEED_STRLCAT -DNEED_STRRSTR   -DUSE_WMS_LYR -DUSE_WFS_LYR
-DUSE_SOS_SVR -DUSE_LIBXML2 -DUSE_CURL -DUSE_CURLOPT_PROXYAUTH
-DUSE_WCS_SVR  -DUSE_WMS_SVR   -DUSE_POSTGIS
-DPOSTGIS_HAS_SERVER_VERSION -DUSE_GDAL -DUSE_OGR -DUSE_GEOS
-DUSE_THREAD -DUSE_PROJ -DUSE_AGG_SVG_SYMBOLS-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
-DGD_HAS_GET_TRUE_COLOR_PIXEL -DUSE_ICONV -DUSE_GIF -DUSE_PNG
-DUSE_ZLIB -DUSE_FREETYPE   -DDISABLE_CVSID -I/usr/include/
-I/usr/include//freetype2 -I/usr/lib/ -Irenderers/agg/include
-I/usr/lib/   -I/usr/local/include -I/usr/include/postgresql
-I/usr/local/include -I/usr/include   -I/usr/include/libxml2
maplexer.c -o maplexer.o
maplexer.l: In function ‘msyylex’:
maplexer.l:178: error: ‘IN’ undeclared (first use in this function)
maplexer.l:178: error: (Each undeclared identifier is reported only once
maplexer.l:178: error: for each function it appears in.)
make: *** [maplexer.o] Error 1

On 28 August 2012 11:56, thomas bonfort  wrote:
> On Tue, Aug 28, 2012 at 11:28 AM, Luís de Sousa
>  wrote:
>> Hi again Thomas,
>>
>> Indeed the file is there. So now 2 questions:
>> a) where do have to copy it to?
> to where you're compiling...
>> b) how do I run make so that it doesn't fire flex?
> `touch` it so it is more recent than maplexer.l
>>
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Error compiling Mapserver 6.0.3

2012-08-28 Thread Luís de Sousa
My apologies for clouting the list with messages, but there's another thing I
noted going through the configure output:

configure: checking whether we should include WFS Server support...
OGC WFS Server support not requested. 

Although I'm including the --with-wfsclient argument. Is there something
else missing?

Thank you,

Luís



--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/Error-compiling-Mapserver-6-0-3-tp4998005p4998321.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


Re: [mapserver-users] Error compiling Mapserver 6.0.3

2012-08-28 Thread Luís de Sousa
Dear all,

Following Cristiano's suggestion I downloaded the 6.0.1 tar, a version that
I'm sure works properly. The log goes below. Basically, on a first compile
make complains of not having yacc installed. After installing byacc there's
a parse error on mapparser.y.

What intrigues me is that neither yacc nor lex are referenced in the install
instructions. On other occasions I had to compile Mapserver I don't remember
installing these packages either.

Any further insight is welcome. Thanks for helping,

Luís

$ cd mapserver-6.0.1

$ ./configure --with-ogr=/usr/local/bin/gdal-config
--with-gdal=/usr/local/bin/gdal-config --with-wfsclient --with-wmsclient
--enable-debug --with-curl-config=/usr/bincurl-config --with-proj=/usr/lib/
--with-tiff --with-gd=/usr/lib/ --with-jpeg --with-freetype=/usr/include/
--with-threads --with-wcs --with-libiconv=/usr
--with-geos=/usr/local/bin/geos-config --with-libiconv=/usr
--with-xml2-config=/usr/bin/xml2-config --with-sos
--with-postgis=/usr/lib/postgresql/9.1/bin/pg_config
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... no
checking for lex... no
checking for yywrap in -lfl... no
checking for yywrap in -ll... no
checking for bison... no
checking for byacc... no
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 strlcpy... no
checking for vsnprintf... yes
MapServer Version from mapserver.h: '6.0.1'
checking if pkg-config path is provided... checking for pkg-config...
/usr/bin/pkg-config
checking for Freetype2.x in /usr/include/... checking for FT_Init_FreeType
in -lfreetype... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking ft2build.h usability... yes
checking ft2build.h presence... yes
checking for ft2build.h... yes
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
checking png.h usability... yes
checking png.h presence... yes
checking for png.h... yes
using libpng from system libs.
checking setjmp.h usability... yes
checking setjmp.h presence... yes
checking for setjmp.h... yes
configure: checking where GIF is installed...
checking for DGifOpenFileHandle in -lgif... yes
checking gif_lib.h usability... yes
checking gif_lib.h presence... yes
checking for gif_lib.h... yes
using libgif from system libs.
configure: checking whether we should include JPEG support...
checking for jpeg_read_header in -ljpeg... yes
checking jpeglib.h usability... yes
checking jpeglib.h presence... yes
checking for jpeglib.h... 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.28 or higher...
checking for gdImageCreatePaletteFromTrueColor in -lgd... yes
using libgd 2.0.28 (or higher) from -L/usr/lib/ -lgd -ljpeg  -lpng
-lz -lXpm -lX11 
checking for gdImageGif in -lc... yes
checking for gdImagePng in -lc... yes
checking for gdImageJpeg in -lc... yes
checking for gdImageWBMP in -lc... yes
checking for gdImageStringFT in -lc... yes
checking for gdImageSetResolution in -lc... no
checking for gdImageOpenPolygon in -lc... yes
checking for gdImageGifPtr in -lc... yes
checking for gdFontGetTiny in -lc... yes
checking whether gdImageGetTrueColorPixel is declared... yes
checking for gdImageGetTrueColorPixel in -lc... yes
using GD ( -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP
-DUSE_GD_FT -DGD_HA

Re: [mapserver-users] Error compiling Mapserver 6.0.3

2012-08-29 Thread Luís de Sousa
Dear all, here's a digest of my exploits today:

. The error on mapparser.y was coming up because I was trying to recompile
without cleaning first;

. The compile process doesn't go through without yacc (byacc in this case)
installed;

. With yacc installed the compilation goes through a good length and then
fails on maplexer.l:
maplexer.l: In function ‘msyylex’:
maplexer.l:178: error: ‘IN’ undeclared (first use in this function)
maplexer.l:178: error: (Each undeclared identifier is reported only once
maplexer.l:178: error: for each function it appears in.)
make: *** [maplexer.o] Error 1

I have tried to use touch again, as Thomas suggested, but this error
remains. Is there any other way to avoid the generation of maplexer.c? Would
editing the makefile be an option?

Also important to note that this behaviour is exactly the same with either
Mapserver 6.0.1 or 6.0.3.

Thank you for reading,

Luís



--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/Error-compiling-Mapserver-6-0-3-tp4998005p4998519.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


Re: [mapserver-users] Error compiling Mapserver 6.0.3

2012-08-30 Thread Luís de Sousa
Hello everyone,

Yesterday I went round the several Mapscript installations I'm managing and
noted that those that I've compiled so far have all been 6.0.2. But this
time I'm trying with postgres for the first time, hence I though this to be
the cause of my troubles.

This morning, more out of desperation than anything else, I downloaded 6.0.2
and gave it a try. Amazingly the compilation went just fine, no issues with
lex or yacc, everything when on as it should.

Where's the log for future reference, without messages:

wget http://download.osgeo.org/mapserver/mapserver-6.0.2.tar.gz
tar xvf mapserver-6.0.2.tar.gz
cd mapserver-6.0.2
sudo su
configure [omiting options for simplicity]
make lexer
make
exit

This was run with both byacc and flex uninstalled. There is definitely
something wrong with the 6.0.1 and 6.0.3 packages, in particular with the
maplexer.l file.

Thanks to everyone that helped,

Luís



--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/Error-compiling-Mapserver-6-0-3-tp4998005p4998782.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


Re: [mapserver-users] Error compiling Mapserver 6.0.3

2012-08-30 Thread Luís de Sousa
Hi Andreas, please check the comments up thread to understand why I'm
including it.

Regards,

Luís

On 30 August 2012 10:45, Eichner, Andreas - SID-NLKM
 wrote:
>
>> make lexer
>
> You can safely ommit that as maplexer.c is shipped with the distribution.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Error compiling Mapserver 6.0.3

2012-08-30 Thread Luís de Sousa
On 30 August 2012 11:12, thomas bonfort  wrote:
> As already stated multiple times, you have no reason to regenerate the
> lexer yourself, i.e. flex and yacc are *not* a requirement for
> building. Start off with a fresh directory from a 6.0.3 tarball, to be
> sure touch maplexer.c and uninstall flex/yacc, and you should be fine.
>

I've done that yesterday (or the day before) with both 6.0.3 and
6.0.1, please read my messages up thread. I'm not compiling maplexer.c
myself, I'm just following the instructions at the Mapserver website.

Thank you for the help in any case,

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


Re: [mapserver-users] Error compiling Mapserver 6.0.3

2012-08-30 Thread Luís de Sousa
On 30 August 2012 12:05, Eichner, Andreas - SID-NLKM
>
> All went fine so I'm just wondering what the hell you're doing.
>

Hi Andreas, if you read the very first message in this thread you'll
see that was the first thing I tried.

Regards,

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


[mapserver-users] IMAGEMODE with Mapserver 6.2

2013-02-06 Thread Luís de Sousa
Dear all,

We updated to Mapserver 6.2 in one of our servers today (from 6.0) and a few
of the map files started issuing the following error:

msLoadMap(): Regular expression error. MS_DEFAULT_MAPFILE_PATTERN validation
failed. msEvalRegex(): Regular expression error. String failed expression
test. 

A GetCapabilities request on these files returns an incomplete XML response
and generates a segmentation fault.

We found this being caused by the IMAGEMODE FLOAT32 tag we have to include
in the OUTPUTFORMAR for raster layers. Commenting out this tag all WMS
queries works as they should, but the WCS always returns RGB data that we
can't use.

So this question is if something changed for IMAGEMODE from version 6.0 to
6.2 or if this is a bug. Please advise on how to proceed.

Thank you,

Luís



--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/IMAGEMODE-with-Mapserver-6-2-tp5032509.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] Legends with colour ramps.

2013-02-06 Thread Luís de Sousa
Dear all,

I have a raster layer with the colour ramp reproduced below. It does what it
should in a GetMap request, but with GetLegendGraphic it is returning the
image here attached.

I imagine I'm missing some config to get the legend correctly. But what
exactly?

Thank you,

Luís

 

#

CLASS
NAME "ColourRamp"
EXPRESSION ([pixel] >= -10 and [pixel] <= 100)
STYLE
  COLORRANGE 240 249 232  8 88 158
  DATARANGE -10 100
END
END



--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/Legends-with-colour-ramps-tp5032514.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] SLD with colour ramp in WMS GetMap

2013-02-15 Thread Luís de Sousa
Hello everyone,

I have a raster layer with the following range of values:

$ gdalinfo -hist my_data.tiff
[...]
STATISTICS_MAXIMUM=128.30499267578
STATISTICS_MEAN=6.3870258293789
STATISTICS_MINIMUM=-9.5671482086182
STATISTICS_STDDEV=11.960967394892

This is layer is being published through Mapserver and I get perfectly
correct maps through WMS.

Now I'd like to style the maps retrieved by mapserver using the SLD
parameter of the GetMap request. I'm starting with the basic example in the
SLD Cookbook [1]:


http://www.opengis.net/sld";
  xmlns:ogc="http://www.opengis.net/ogc";
  xmlns:xlink="http://www.w3.org/1999/xlink";
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  xsi:schemaLocation="http://www.opengis.net/sld
  http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd";>
  
my_data
 
  SLD Cook Book: Two color gradient
  

  

  
  

  

  

  


When I issue a request with this SLD file:

http://my.server/cgi-bin/mapserv?map=/var/www/file.map&VERSION=1.1.1&REQUEST=GetMap&LAYERS=my_data&SRS=EPSG:3857&BBOX=497600,6784100,498900,6786500&WIDTH=300&HEIGHT=600&FORMAT=image/gif&SLD=http://my.server/SLD/my_data.sld

I'm getting back simply a green patch (see the file my_data_SLD.gif).
Whereas without the SLD argument the features in the file are quite visible
(my_data.gif).

 

 

So what's wrong in here? The SLD file is exactly the same found in the SLD
cookbock, I doubt it has an error. Do I have to configure the layer somehow
in the map file in order for Mapserver to style it with the SLD?

Thank you.

[1]
http://docs.geoserver.org/latest/en/user/styling/sld-cookbook/rasters.html#example-raster



--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/SLD-with-colour-ramp-in-WMS-GetMap-tp5034507.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


Re: [mapserver-users] SLD with colour ramp in WMS GetMap

2013-02-18 Thread Luís de Sousa
Jeff McKenna wrote
> Please follow the MapServer SLD document at:
> http://www.mapserver.org/ogc/sld.html

Hi Jeff, thank you for replying. 

Unfortunately there's no reference in that document to colour ramps for
raster files. Hence I recurred to the Cookbook.

Regards,

Luís




--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/SLD-with-colour-ramp-in-WMS-GetMap-tp5034507p5034910.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


Re: [mapserver-users] SLD with colour ramp in WMS GetMap

2013-02-18 Thread Luís de Sousa
Hi Frank thanks for replying, my comments go below:


Frank Warmerdam wrote
> Luis,
> 
> I suspect the problem is how raster values are scaled.  I think the raster
> SLD is applied essentially as a set of classes on the layer but it is not
> clear how scaling gets set.  

All the examples in the Cookbook using ColorMap groups generate colour
ramps, not classes, nor doesn't seem logic for it to be otherwise.


Frank Warmerdam wrote
> What does the layer definition look like?  Can
> you try doing what you want with mapserver classes in the map file?

I would expect a ColorMap group with two ColorMapEntry tags, like in the
example I posted originally, to produce the same result as this map file
style class:

CLASS
NAME "ColourRamp"
EXPRESSION ([pixel] >= -10 and [pixel] <= 130)
STYLE
  COLORRANGE 0 128 0  102 51 51
  DATARANGE -10 130
END
END


Frank Warmerdam wrote
> While your SLD looks fine, how these are used by mapserver is fiddly.

SLD is an OGC standard, it shouldn't give room for fiddling. Or does it?

Regards,

Luís






--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/SLD-with-colour-ramp-in-WMS-GetMap-tp5034507p5034913.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


Re: [mapserver-users] SLD with colour ramp in WMS GetMap

2013-03-15 Thread Luís de Sousa
Any other ideas on this subject?

Thanks,

Luís



--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/SLD-with-colour-ramp-in-WMS-GetMap-tp5034507p5040725.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


Re: [mapserver-users] Legends with colour ramps.

2013-03-15 Thread Luís de Sousa
Any insight on this issue is welcome. Thank you,

Luís



--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/Legends-with-colour-ramps-tp5032514p5040726.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] MAXSIZE on Windows

2013-05-08 Thread Luís de Sousa
Dear all,

I have set up MapServer for the first time on Windows using MS4W, and the
installation itself went well. I then tried to set up a map file and
retrieve the data with QGis. No matter what I always get an error like this:

msWMSLoadGetMapParams(): WMS server error. Image size out of range, WIDTH
and HEIGHT must be between 1 and 32736 pixels.

I'm using map files that I use in Linux without needing to set MAXSIZE. On
Windows not only it seems to be necessary, it seems also to require a large
figure. Anyone knows what size should be set? Or is this error being caused
by something else?

Thank you,

Luis



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/MAXSIZE-on-Windows-tp5052107.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] HTML response to GetFeature request

2013-06-26 Thread Luís de Sousa
Dear all,

I have a polygons layer published with MapServer that I can access through
WMS and WFS requests in a browser (HTTP GET). I set up this layer in a web
application that tries to fetch it through OpenLayers using a POST request.
This how the body of a post sent by OpenLayers looks like:

http://www.opengis.net/wfs"; service="WFS"
version="1.1.0" xsi:schemaLocation="http://www.opengis.net/wfs
http://schemas.opengis.net/wfs/1.1.0/wfs.xsd";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
http://mapserver.gis.umn.edu/mapserver";>


To this request MapServer is responding back with HTML, which OpenLayers is
naturally unable to process:


 
  

   Getting Started with MapServer
  

  
 
  
 


Why is MapServer responding this way to this request? Could this be caused
by some error in the POST body? Any hints welcome.

Thank you,

Luís



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/HTML-response-to-GetFeature-request-tp5062355.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


Re: [mapserver-users] HTML response to GetFeature request

2013-06-27 Thread Luís de Sousa
On 26 June 2013 16:56, Marco Afonso  wrote:

> Hi,
>
> Check in the Mapfile, at WEB/METADATA level, the following parameters:
>
> "ows_enable_request" "*"
> "gml_include_items" "all"
>

Hi Marco, thank you for the message. The layer definition goes below, I
believe I have all that's needed.

Thanks,

Luís

LAYER
  NAME "RO_buildings_gml"
  TYPE POLYGON
  CONNECTIONTYPE OGR
  CONNECTION "/var/sampleData/BuildingsFull.gml"
  STATUS ON

  DUMP TRUE
  TEMPLATE "templateRO_building_footprints.html"

  PROJECTION
"+proj=sterea +lat_0=52.156160 +lon_0=5.387639
+k=0.079 +x_0=155000 +y_0=463000 +ellps=bessel
+towgs84=565.237,50.0087,465.658,-0.406857,0.350733,-1.87035,4.0812
+units=m +no_defs"  # the projection of the source data set
#"init=epsg:28992"  # the projection of the source data set
  END

  METADATA
"ows_title" "Building footprints (GML)"
"ows_abstract" "Data set of building footprints in Rotterdam city area
for the slider demo"
"ows_enable_request" "*"
"gml_include_items" "all"
  END

  CLASS
   NAME "Building_footprints (GML)"
   OUTLINECOLOR 255 0 0
  END
END
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] HTML response to GetFeature request

2013-06-27 Thread Luís de Sousa
On 26 June 2013 16:56, Marco Afonso  wrote:
>Hi,
>
>Check in the Mapfile, at WEB/METADATA level, the following parameters:
>
>"ows_enable_request" "*"
>"gml_include_items" "all"

Hi Marco, thank you for the message. The layer definition goes below, I
believe I have all that's needed.

Thanks,

Luís

LAYER 
  NAME "RO_buildings_gml"
  TYPE POLYGON
  CONNECTIONTYPE OGR
  CONNECTION "/var/sampleData/BuildingsFull.gml"
  STATUS ON
  
  DUMP TRUE 
  TEMPLATE "templateRO_building_footprints.html"

  PROJECTION
"+proj=sterea +lat_0=52.156160 +lon_0=5.387639
+k=0.079 +x_0=155000 +y_0=463000 +ellps=bessel
+towgs84=565.237,50.0087,465.658,-0.406857,0.350733,-1.87035,4.0812 +units=m
+no_defs"  # the projection of the source data set
#"init=epsg:28992"  # the projection of the source data set
  END
  
  METADATA
"ows_title" "Building footprints (GML)"
"ows_abstract" "Data set of building footprints in Rotterdam city area
for the slider demo"
"ows_enable_request" "*"
"gml_include_items" "all"  
  END

  CLASS
   NAME "Building_footprints (GML)"
   OUTLINECOLOR 255 0 0
  END
END 



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/HTML-response-to-GetFeature-request-tp5062355p5062586.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


Re: [mapserver-users] HTML response to GetFeature request

2013-06-28 Thread Luís de Sousa
Hi Michael thank you for the reply, my comments go below.


Michael Schulz-6 wrote
> Hi Luis,
> 
> for WFS enabling layers you should add some more metadata, wfs_srs and
> gml_featureid. 

I've added these to the LAYER block, but the response is the same (see the
definition below). I have had both "ows_enable_request" and
"gml_include_items" "all" in the main file section all along.


Michael Schulz-6 wrote
> I'm also not sure about the projection stuff. Is there a
> reason for not using the espg code?

The in line projection definition is supposed to speed up rendition.


Michael Schulz-6 wrote
> Try adding some debug logging. 

Here's what I'm getting in the MapServer log:

[Fri Jun 28 14:17:09 2013].620005 CGI Request 1 on process 9189
[Fri Jun 28 14:17:09 2013].621842 msDrawMap(): rendering using outputformat
named GTiff-RGB (GDAL/GTiff).
[Fri Jun 28 14:17:09 2013].621861 msDrawMap(): WMS/WFS set-up and query,
0.000s
[Fri Jun 28 14:17:09 2013].621900 msDrawMap(): Drawing Label Cache, 0.000s
[Fri Jun 28 14:17:09 2013].621908 msDrawMap() total time: 0.002s
[Fri Jun 28 14:17:09 2013].657425
msSaveImage(/var/www/MapFiles/map_images/TUDOR_RO_test-environment13724218299189.tif)
total time: 0.036s
[Fri Jun 28 14:17:09 2013].658291 mapserv request processing time (msLoadMap
not incl.): 0.038s
[Fri Jun 28 14:17:09 2013].658311 msFreeMap(): freeing map at 0x10c1940.


Michael Schulz-6 wrote
> Another thing to check: your requesting
> typeName="feature:BuildingsWFS" but from the mapfile I'd say the typename
> shoud be "RO_buildings_gml".

Yes, it seems the first POST body I posted is wrong, but I'm using the
correct layer name testing. You can try it here:

http://apikitchen.com/#bXd2s

Once again, note that with a GET request everything works as it should:

http://services.iguess.tudor.lu/cgi-bin/mapserv?map=/var/www/MapFiles/RO_localOWS_test.map&SERVICE=WFS&VERSION=1.1.0&REQUEST=GetFeature&TYPENAME=RO_buildings_gml&MAXFEATURES=10

Thank you once more,

Luís

#3

LAYER 
  NAME "RO_buildings_gml"
  TYPE POLYGON
  CONNECTIONTYPE OGR
  CONNECTION "/var/www/pywps/sampleData/BuildingsFull.gml"
  STATUS ON
  
  DUMP TRUE 
  TEMPLATE "templateRO_building_footprints.html"

  PROJECTION
"+proj=sterea +lat_0=52.156160 +lon_0=5.387639
+k=0.079 +x_0=155000 +y_0=463000 +ellps=bessel
+towgs84=565.237,50.0087,465.658,-0.406857,0.350733,-1.87035,4.0812 +units=m
+no_defs"
  END
  
  METADATA
"ows_title" "Building footprints (GML)"
"ows_abstract" "Data set of building footprints in Rotterdam city area
for the slider demo"
"wfs_srs" "EPSG:28992"
"gml_featureid" "GML_ID"
"ows_enable_request" "*"
"gml_include_items" "all" 
  END

  CLASS
   NAME "Building_footprints (GML)"
   OUTLINECOLOR 255 0 0
  END
END





--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/HTML-response-to-GetFeature-request-tp5062355p5062817.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


Re: [mapserver-users] About the Color Ramp for Raster Data

2013-06-28 Thread Luís de Sousa
Hi Guo,

Yes, this method is working for GetMap requests. For GetLegend, at least, it
is not working in version 6.2.

Luís



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/About-the-Color-Ramp-for-Raster-Data-tp5062351p5062821.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


Re: [mapserver-users] HTML response to GetFeature request

2013-07-01 Thread Luís de Sousa
Hi Jukka,

I also do get correct results with Poster, but not with API Kitchen. This
is really frustrating, but at least the service seems to running as it
should.

Thank you,

Luís


On 28 June 2013 15:17, Rahkonen Jukka  wrote:

> Sorry, nothing wrong with the typename and using
> "feature:RO_buildings_gml".  Namespace “feature” is described later in the
> request and I do get correct results with Poster if I have
>
> typeName="feature:RO_buildings_gml" srsName="EPSG:28992" xmlns:feature="
> http://mapserver.gis.umn.edu/mapserver";>
>
> -Jukka-
>
> Rahkonen Jukka wrote:
> >
> > Hi,
> >
> > I made a trial with Firefox Poster plugin and I get correct results back
> after
> > correcting the typename. I do not know what is wrong with API Kitchen
> and your
> > other trials.
> >
> > http://www.opengis.net/wfs"; service="WFS"
> > version="1.1.0" xsi:schemaLocation="http://www.opengis.net/wfs
> > http://schemas.opengis.net/wfs/1.1.0/wfs.xsd";
> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
> >  > xmlns:feature="http://mapserver.gis.umn.edu/mapserver";>
> > 
> >
> > Kosmo Desktop 3.0 beta
> > http://www.opengis.es/index.php?option=com_docman&Itemid=42?lang=en
> > reads data with http POST from your site basically fine.  You have some
> data
> > errors, though, and Kosmo says that there is dublicate fid around fid
> .168 .
> >
> > -Jukka Rahkonen-
> >
> >
> > > -Alkuperäinen viesti-
> > > Lähettäjä: mapserver-users-boun...@lists.osgeo.org
> > > [mailto:mapserver-users- boun...@lists.osgeo.org] Puolesta Luís de
> > > Sousa
> > > Lähetetty: 28. kesäkuuta 2013 15:30
> > > Vastaanottaja: mapserver-users@lists.osgeo.org
> > > Aihe: Re: [mapserver-users] HTML response to GetFeature request
> > >
> > > Hi Michael thank you for the reply, my comments go below.
> > >
> > >
> > > Michael Schulz-6 wrote
> > > > Hi Luis,
> > > >
> > > > for WFS enabling layers you should add some more metadata, wfs_srs
> > > > and gml_featureid.
> > >
> > > I've added these to the LAYER block, but the response is the same (see
> > > the definition below). I have had both "ows_enable_request" and
> > > "gml_include_items" "all" in the main file section all along.
> > >
> > >
> > > Michael Schulz-6 wrote
> > > > I'm also not sure about the projection stuff. Is there a reason for
> > > > not using the espg code?
> > >
> > > The in line projection definition is supposed to speed up rendition.
> > >
> > >
> > > Michael Schulz-6 wrote
> > > > Try adding some debug logging.
> > >
> > > Here's what I'm getting in the MapServer log:
> > >
> > > [Fri Jun 28 14:17:09 2013].620005 CGI Request 1 on process 9189 [Fri
> > > Jun 28
> > > 14:17:09 2013].621842 msDrawMap(): rendering using outputformat named
> > > GTiff-RGB (GDAL/GTiff).
> > > [Fri Jun 28 14:17:09 2013].621861 msDrawMap(): WMS/WFS set-up and
> > > query, 0.000s [Fri Jun 28 14:17:09 2013].621900 msDrawMap(): Drawing
> > > Label Cache, 0.000s [Fri Jun 28 14:17:09 2013].621908 msDrawMap()
> > > total time: 0.002s [Fri Jun 28 14:17:09 2013].657425
> > > msSaveImage(/var/www/MapFiles/map_images/TUDOR_RO_test-
> > > environment13724218299189.tif)
> > > total time: 0.036s
> > > [Fri Jun 28 14:17:09 2013].658291 mapserv request processing time
> > > (msLoadMap not incl.): 0.038s [Fri Jun 28 14:17:09 2013].658311
> > msFreeMap():
> > > freeing map at 0x10c1940.
> > >
> > >
> > > Michael Schulz-6 wrote
> > > > Another thing to check: your requesting
> > > > typeName="feature:BuildingsWFS" but from the mapfile I'd say the
> > > > typename shoud be "RO_buildings_gml".
> > >
> > > Yes, it seems the first POST body I posted is wrong, but I'm using the
> > > correct layer name testing. You can try it here:
> > >
> > > http://apikitchen.com/#bXd2s
> > >
> > > Once again, note that with a GET request everything works as it should:
> > >
> > > http://services.iguess.tudor.lu/cgi-
> > >
> > bin/mapserv?map=/var/www/MapFiles/RO_localOWS_test.map&SERVICE=WFS
> > >
> > &VERSION=1.1.0&REQUEST=GetFeature&

[mapserver-users] Print server: rlank document

2013-07-08 Thread Luís de Sousa
Hello everyone,

I just installed the print server in a new system (as a war deployed on
Tomcat). It is answering correctly to GetCapabilities requests, but print
requests are returning empty documents, just showing the title, comments
and the pre-defined footer. I've installed the print server successfully in
other systems, so I imagine that this may be a dependency missing. I've
confirmed that both ImageMagick and Ghostscript are installed, what else
could be missing?

Another thing: are there any logs created by the print server? At least in
catalina.out nothing is showing up.

Thank you,

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


Re: [mapserver-users] Print server: rlank document

2013-07-08 Thread Luís de Sousa
Yes, I'm sorry. Regards,

Luís




On 8 July 2013 12:02, Yves Jacolin (Free)  wrote:

> Le lundi 8 juillet 2013 12:00:56 Luís de Sousa a écrit :
> > Hello everyone,
> >
> > I just installed the print server in a new system (as a war deployed on
> > Tomcat). It is answering correctly to GetCapabilities requests, but print
> > requests are returning empty documents, just showing the title, comments
> > and the pre-defined footer. I've installed the print server successfully
> in
> > other systems, so I imagine that this may be a dependency missing. I've
> > confirmed that both ImageMagick and Ghostscript are installed, what else
> > could be missing?
> >
> > Another thing: are there any logs created by the print server? At least
> in
> > catalina.out nothing is showing up.
> >
> > Thank you,
> >
> Luís,
>
> Wrong mailing list? :)
>
> Y.
>
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] ScribeUI: Possible segmentation fault on Ubuntu 12.04

2013-08-14 Thread Luís de Sousa
Dear all,

I just installed ScribeUI on Ubuntu 12.04. When I try to access it there's
a timeout:

--2013-08-13 21:48:07--  (try:20)  http://localhost/ScribeUI
Connecting to localhost (localhost)|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... Read error (Connection timed out)
in headers.

In the apache log I have a segmentation fault registered every second since
I installed ScribeUI, like:

[Tue Aug 13 16:46:18 2013] [notice] child pid 5556 exit signal Segmentation
fault (11)

Is there any log file specific to ScribeUI? Otherwise, is there any other
way to get some debug messages to understand what's going wrong?

Thank you,

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


Re: [mapserver-users] ScribeUI: Possible segmentation fault on Ubuntu 12.04

2013-08-14 Thread Luís de Sousa
Hi Jessica, thank you for the reply.

Those segmentation fault messages were being issued even when no requests
were made. The only way to stop it was to remove the ScribeUI config file
from sites-enabled. I believe there is something going wrong with the cgi.

Beyond diving into the code, is there any other easy way of debugging?

Luís



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/ScribeUI-Possible-segmentation-fault-on-Ubuntu-12-04-tp5072423p5072538.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


Re: [mapserver-users] ScribeUI: Possible segmentation fault on Ubuntu 12.04

2013-08-16 Thread Luís de Sousa
Hi again Jessica,

After a second restart the server seems to be back to normal and I can now
load the main ScribeUI page. That was a good tip, thanks.

Unfortunately ScribeUI is trying to load a heap of assets from
localhost/static, which does not exist at this stage. Should I map an alias
from there to /opt/ScribeUI/application/static?

Thanks.



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/ScribeUI-Possible-segmentation-fault-on-Ubuntu-12-04-tp5072423p5072841.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


Re: [mapserver-users] ScribeUI: Possible segmentation fault on Ubuntu 12.04

2013-08-19 Thread Luís de Sousa
Hi Jessica, you'll find below the contents of the files you ask plus the
Apache config.

Here's an example of an address ScirbeUI is trying to access that doesn't
exist:

http://localhost/static/css/reset.css

I believe it should be:

http://localhost/ScribeUI/static/css/reset.css

But I can't see where this particular path could be configured.

Thanks for helping,

Luís


#--
# config.py

#Replace 0.0.0.0 with your server's ip or hostname
#Examples: "127.0.0.1", "my.host.com"
ip = "0.0.0.0"


#--
# runserver.wsgi

from runserver.py import app as application

import sys

#Replace  with the path to the root of your scribeui
installation
#Example: /opt/ScribeUI/application/runserver.py

sys.path.insert(0,'/opt/ScribeUI/application/runserver.py')

WSGIScriptAlias /ScribeUI /opt/ScribeUI/application/runserver.py


#--
# ScribeUI.conf

#ScribeUI

WSGIScriptAlias /ScribeUI /opt/ScribeUI/application/runserver.py
AddType text/html .py

  Order deny,allow
  Allow from all


Alias /ScribeUI/download/ "/opt/ScribeUI/application/www/"

  AllowOverride None
  Options Indexes FollowSymLinks Multiviews
  Order allow,deny
  Allow from all





--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/ScribeUI-Possible-segmentation-fault-on-Ubuntu-12-04-tp5072423p5073155.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


Re: [mapserver-users] ScribeUI: Possible segmentation fault on Ubuntu 12.04

2013-08-20 Thread Luís de Sousa
On 19 August 2013 16:16, Jessica Lapointe  wrote:

> Hi Luis,
>
> You are right that the url should be localhost/ScribeUI/static.
> In your config.py file, this ip = "0.0.0.0" should be the domain you
> access the app with, in your case, it should be  ip = "localhost"
>

Hi again Jessica,

I tried with "localhost" and "localhost/ScribeUI", but in both cases it
tries to load the css and js files from "localhost/static".

Thanks,

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


Re: [mapserver-users] ScribeUI: Possible segmentation fault on Ubuntu 12.04

2013-08-22 Thread Luís de Sousa
Hi Jessica, thank you for the swift fix. I confirm that it now works without
the end slash.

For future reference here is how to checkout a tag from GitHub:

git pull

git checkout tags/v0.1.2

Btw, the interface is far more complex than I expected, a manual will be
handy at some point.

Regards,

Luís



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/ScribeUI-Possible-segmentation-fault-on-Ubuntu-12-04-tp5072423p5073759.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


Re: [mapserver-users] tutorial for python mapscript

2014-04-03 Thread Luís de Sousa

The API reference is documented here:

http://www.mapserver.org/mapscript/mapscript.html


This page seems to no longer exist. Is there an alternative? Thanks.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] WMS request not enabled

2012-02-28 Thread Luís de Sousa
Dear all,

Below goes a map file generated by PyWPS. This file is returning the
following error on a GetCapabilities request:

msWMSGetCapabilities(): WMS server error. WMS request not enabled.
Check wms/ows_enable_request settings.

There is a good deal of information on this list about this error,
because when MapServer 6.0 was introduced many people didn't have the
ows_enable_request parameter set. But PyWPS is correctly setting this
parameter, so there's no apparent reason for this error to come up.

What else can be causing this? Anything I can do to provide more information?

Thank you and regards,

Luís

#

MAP
  CONFIG "MS_ERRORFILE" "stderr"
  DEBUG 5
  EXTENT -180 -90 180 90
  IMAGETYPE "png"
  NAME "buffer-5989-tmpodARQz"
  SIZE -1 -1
  STATUS ON
  UNITS METERS

  OUTPUTFORMAT
NAME "png"
MIMETYPE "image/png"
DRIVER "AGG/PNG"
EXTENSION "png"
IMAGEMODE RGB
TRANSPARENT FALSE
  END # OUTPUTFORMAT

  PROJECTION
"init=epsg:4326"
  END # PROJECTION
  LEGEND
KEYSIZE 20 10
KEYSPACING 5 5
LABEL
  SIZE MEDIUM
  OFFSET 0 0
  SHADOWSIZE 1 1
  TYPE BITMAP
END # LABEL
STATUS OFF
  END # LEGEND

  QUERYMAP
SIZE -1 -1
STATUS OFF
STYLE HILITE
  END # QUERYMAP

  SCALEBAR
IMAGECOLOR 255 255 255
INTERVALS 4
LABEL
  SIZE MEDIUM
  OFFSET 0 0
  SHADOWSIZE 1 1
  TYPE BITMAP
END # LABEL
SIZE 200 3
STATUS OFF
UNITS MILES
  END # SCALEBAR

  WEB
METADATA
  "wcs_label"   "Buffer process using OGR"
  "wms_onlineresource"  
"http://localhost/cgi-bin/mapserv?map=/var/www/wps/wpsoutputs/pywps-0d1bce24-5d36-11e1-99d2-0021cc5dbe3e.map";
  "ows_country" "eu"
  "ows_keywordlist" "GRASS,GIS,WPS"
  "wms_abstract""See http://pywps.wald.intevation.org and
http://www.opengeospatial.org/standards/wps";
  "ows_city""City"
  "ows_contactperson"   "Your Name"
  "ows_contactposition" "Your Position"
  "ows_role""Your role"
  "ows_enable_request"  "*"
  "ows_contactorganization" "Your Company Name"
  "ows_accessconstraints"   "none"
  "ows_title"   "PyWPS Server"
  "ows_fees""None"
  "wcs_abstract""See http://pywps.wald.intevation.org and
http://www.opengeospatial.org/standards/wps";
  "ows_contactelectronicmailaddress""lo...@server.org"
  "wfs_abstract""See http://pywps.wald.intevation.org and
http://www.opengeospatial.org/standards/wps";
  "ows_address" "Street"
  "ows_postcode""000 00"
END # METADATA
  END # WEB

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


Re: [mapserver-users] WMS request not enabled

2012-02-28 Thread Luís de Sousa
Thank you Jukka.

In fact PyWPS is raising some exceptions when invoking mapscript. I'll
upgrade to the trunk right away.

Regards,

Luís

On 28 February 2012 12:32, Rahkonen Jukka  wrote:
> Hi,
>
> There is nothing wrong in your mapfile, only that you do not have any layers 
> in it. I could repeat the behaviour by removing all the layers from my 
> working mapfiles.
>
> The error message in misleading.  I do not know what message there should be 
> if there are no layers in the service but it is otherwise OK. However, 
> something tells me that this might have corrected in a trunk already.
>
> -Jukka Rahkonen-
>
>> -Alkuperäinen viesti-
>> Lähettäjä: mapserver-users-boun...@lists.osgeo.org
>> [mailto:mapserver-users-boun...@lists.osgeo.org] Puolesta
>> Luís de Sousa
>> Lähetetty: 28. helmikuuta 2012 13:08
>> Vastaanottaja: mapserver-users@lists.osgeo.org
>> Aihe: [mapserver-users] WMS request not enabled
>>
>> Dear all,
>>
>> Below goes a map file generated by PyWPS. This file is returning the
>> following error on a GetCapabilities request:
>>
>> msWMSGetCapabilities(): WMS server error. WMS request not enabled.
>> Check wms/ows_enable_request settings.
>>
>> There is a good deal of information on this list about this error,
>> because when MapServer 6.0 was introduced many people didn't have the
>> ows_enable_request parameter set. But PyWPS is correctly setting this
>> parameter, so there's no apparent reason for this error to come up.
>>
>> What else can be causing this? Anything I can do to provide
>> more information?
>>
>> Thank you and regards,
>>
>> Luís
>>
>> #
>>
>> MAP
>>   CONFIG "MS_ERRORFILE" "stderr"
>>   DEBUG 5
>>   EXTENT -180 -90 180 90
>>   IMAGETYPE "png"
>>   NAME "buffer-5989-tmpodARQz"
>>   SIZE -1 -1
>>   STATUS ON
>>   UNITS METERS
>>
>>   OUTPUTFORMAT
>>     NAME "png"
>>     MIMETYPE "image/png"
>>     DRIVER "AGG/PNG"
>>     EXTENSION "png"
>>     IMAGEMODE RGB
>>     TRANSPARENT FALSE
>>   END # OUTPUTFORMAT
>>
>>   PROJECTION
>>     "init=epsg:4326"
>>   END # PROJECTION
>>   LEGEND
>>     KEYSIZE 20 10
>>     KEYSPACING 5 5
>>     LABEL
>>       SIZE MEDIUM
>>       OFFSET 0 0
>>       SHADOWSIZE 1 1
>>       TYPE BITMAP
>>     END # LABEL
>>     STATUS OFF
>>   END # LEGEND
>>
>>   QUERYMAP
>>     SIZE -1 -1
>>     STATUS OFF
>>     STYLE HILITE
>>   END # QUERYMAP
>>
>>   SCALEBAR
>>     IMAGECOLOR 255 255 255
>>     INTERVALS 4
>>     LABEL
>>       SIZE MEDIUM
>>       OFFSET 0 0
>>       SHADOWSIZE 1 1
>>       TYPE BITMAP
>>     END # LABEL
>>     SIZE 200 3
>>     STATUS OFF
>>     UNITS MILES
>>   END # SCALEBAR
>>
>>   WEB
>>     METADATA
>>       "wcs_label"     "Buffer process using OGR"
>>       "wms_onlineresource"
>> "http://localhost/cgi-bin/mapserv?map=/var/www/wps/wpsoutputs/
> pywps-0d1bce24-5d36-11e1-99d2-0021cc5dbe3e.map"
>>       "ows_country"   "eu"
>>       "ows_keywordlist"       "GRASS,GIS,WPS"
>>       "wms_abstract"  "See http://pywps.wald.intevation.org and
>> http://www.opengeospatial.org/standards/wps";
>>       "ows_city"      "City"
>>       "ows_contactperson"     "Your Name"
>>       "ows_contactposition"   "Your Position"
>>       "ows_role"      "Your role"
>>       "ows_enable_request"    "*"
>>       "ows_contactorganization"       "Your Company Name"
>>       "ows_accessconstraints" "none"
>>       "ows_title"     "PyWPS Server"
>>       "ows_fees"      "None"
>>       "wcs_abstract"  "See http://pywps.wald.intevation.org and
>> http://www.opengeospatial.org/standards/wps";
>>       "ows_contactelectronicmailaddress"      "lo...@server.org"
>>       "wfs_abstract"  "See http://pywps.wald.intevation.org and
>> http://www.opengeospatial.org/standards/wps";
>>       "ows_address"   "Street"
>>       "ows_postcode"  "000 00"
>>     END # METADATA
>>   END # WEB
>>
>> END # MAP
>> ___
>> 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] Mapserv stopped running after upgrade to trunk

2012-02-28 Thread Luís de Sousa
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


[mapserver-users] Re: Mapserv stopped running after upgrade to trunk

2012-02-28 Thread Luís de Sousa
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