Re: [mapserver-users] Internal Server Error / proxy.cgi Fixed

2010-09-30 Thread Simone Lella
I've installed Python 2.7 and I've changed the first row of Proxy.cgi file with #! C:/Python27/python.exe -u Simone Simone Lella Istituto per il Rilevamento Elettromagnetico dell'Ambiente IREA - CNR (http://www.irea.cnr.it) Via Bassini, 15 Tel. +39 02-23699299 Milano Il 23/09/2010 11:13,

[mapserver-users] wfs filter request

2010-09-30 Thread Holger Porath
Hi again! We are still having issues with using mapserver 5.6.5 as a wfs server together. When we submit a wfs getfeature filter request mapserver doesn't use the filter in the sql statement. It just searches all the objects in the database and applies the filter on the result. Thus, we

[mapserver-users] Problems labelling using Halo option

2010-09-30 Thread David Alda Fernandez de Lezea
Hi list, I'm developing a program that generates some images from a WMS with a dynamic generated SLD. The problem is that I'm telling MapServer to generate some labels with Halo, to make them easy to read, using the following code: NamedLayer Namevinedos/Name

Re: [mapserver-users] lighttpd, TNS:could not resolve...

2010-09-30 Thread Sebastian E. Ovide
yes. g...@mapserver:~$ ls -la /home/gis/conf/tnsnames.ora -rw-r--r-- 1 gis gis 184 2010-09-29 16:19 /home/gis/conf/tnsnames.ora g...@mapserver:~$ sudo su www-data -c 'cat /home/gis/conf/tnsnames.ora' MFUATDB = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.60.70)(PORT = 1521))

Re: [mapserver-users] lighttpd, TNS:could not resolve...

2010-09-30 Thread Rahkonen Jukka
Hi, For me, sometimes with some Oracle user name from some computers SQL*Plus does not understand if I am using the SERVICE_NAME. It you happen to have the same situation you should be able to connect with the connection name, which seems to be MFUATDB for you. Actually, the error message

Re: [mapserver-users] lighttpd, TNS:could not resolve...

2010-09-30 Thread Sebastian E. Ovide
no luck... renamed servicename to capital.. so now connection name==service name... same problem... ogrinfo works, mapserver doesn't On Thu, Sep 30, 2010 at 9:37 AM, Rahkonen Jukka jukka.rahko...@mmmtike.fiwrote: Hi, For me, sometimes with some Oracle user name from some computers

Re: [mapserver-users] lighttpd, TNS:could not resolve...

2010-09-30 Thread Dan Little
Does shp2img work with your Mapfile? From: Sebastian E. Ovide sebastian.ov...@gmail.com To: Rahkonen Jukka jukka.rahko...@mmmtike.fi Cc: mapserver-users@lists.osgeo.org Sent: Thu, September 30, 2010 4:47:30 AM Subject: Re: [mapserver-users] lighttpd, TNS:could not resolve... the message says:

Re: [mapserver-users] Problems labelling using Halo option

2010-09-30 Thread Yewondwossen Assefa
Hi there, Is the sld xml you are using valid? Grabbing it from this e-mail, It seems to not validate (several PropertyName tags). It might just a copy paste but make sure of that. You can aslo set your map in debug mode ( DEBUG 5 for example) and check your logs to see if the xml was

RE: [mapserver-users] Problems labelling using Halo option

2010-09-30 Thread David Alda Fernandez de Lezea
Assefa, Yes, it's valid. It works, but not with desired behaviour. It draws the polygons with the labels but without the Halo effect. I forgot to put xml headers in the previous email. ?xml version=1.0 encoding=UTF-8? StyledLayerDescriptor version=1.0.0

RE: [mapserver-users] Expressions

2010-09-30 Thread Jay Kapalczynski
I changed the format to and using another field ('GEO_TIME' - still numeric) param type=today offset=-14 name=LASTTWOWEEKS format=%2Y%2M%2D / Instead of: param type=today offset=-14 name=LASTTWOWEEKS format=%4Y%2M%2D / This worked EXPRESSION ([GEO_TIME] 100916)

Re: [mapserver-users] Problems labelling using Halo option

2010-09-30 Thread Yewondwossen Assefa
Hi, Check the file C:/ms4w/Apache/htdocs/ogcservices/tmp/4ca47709_100_1._sld.map and the layer where the sld is applied, the label object should have the outlinecolor set if it worked properly. Is that the case? I am not sure I understand the font issue, but you can also see what font was

[mapserver-users] How to get some part extents in polygon within complete polygon

2010-09-30 Thread venkat
Dear All, How can I get certain part boundary extents from polygon.I am using below code to get full extents of the polygon. Code to get bounds extents :- shapeObj shape = layer.getFeature(shapeInd, -1); lab.Text = Min X : + shape.bounds.minx +,+Max X : + shape.bounds.maxx +, + Min Y :

Re: [mapserver-users] lighttpd, TNS:could not resolve...

2010-09-30 Thread Sebastian E. Ovide
on the same machine, with the same data and same tns file it works fine with APACHE the problems is only with LIGHTTPD... it looks like TNS_ADMIN = /home/gis/conf/ is ignored (in apache I've used SetEnv and PassEnv ??? On Thu, Sep 30, 2010 at 12:22 PM, Dan Little danlit...@yahoo.com wrote:

Re: [mapserver-users] lighttpd, TNS:could not resolve...

2010-09-30 Thread Dan Little
I was starting to suspect MapServer is just no seeing the environment variables... Try this... write a wrapper script mapserv.sh #!/bin/bash TNS_ADMIN=/home/gis/conf /home/gis/bin/mapserv Then update your script to point to mapserv.sh. From: Sebastian E. Ovide sebastian.ov...@gmail.com

Re: [mapserver-users] lighttpd, TNS:could not resolve...

2010-09-30 Thread Sebastian E. Ovide
updates. even if it works with APACHE + CGI, it does NOT work with APACHE+FASTCGI (AppClass /home/gis/bin/mapserv -initial-env TNS_ADMIN=/home/gis/conf/) On Thu, Sep 30, 2010 at 2:01 PM, Sebastian E. Ovide sebastian.ov...@gmail.com wrote: on the same machine, with the same data and same tns

Re: [mapserver-users] wfs filter request

2010-09-30 Thread Yewondwossen Assefa
Hi There, I have loged this in http://trac.osgeo.org/mapserver/ticket/3557. Fix is committed for the 5.6 branch. Please give it a try and update the bug. regards, On 30/09/2010 3:43 AM, Holger Porath wrote: Hi again! We are still having issues with using mapserver 5.6.5 as a wfs server

Re: [mapserver-users] lighttpd, TNS:could not resolve...

2010-09-30 Thread Sebastian E. Ovide
done. (restarted server etc...) exactly the same problem... On Thu, Sep 30, 2010 at 2:51 PM, Dan Little danlit...@yahoo.com wrote: I was starting to suspect MapServer is just no seeing the environment variables... Try this... write a wrapper script mapserv.sh #!/bin/bash

[mapserver-users] substitute DATA parameter via URL?

2010-09-30 Thread Stefanie Weykam
Dear list members, I would like to change the following DATA parameter via URL DATA the_geom from (SELECT the_geom, oid, acar as qf FROM geotable) as foo USING UNIQUE oid USING SRID=4326 ..where acar is the variable (a table field name) that should change on request. How would the

Re: [mapserver-users] substitute DATA parameter via URL?

2010-09-30 Thread Rahkonen Jukka
Hi, I believe that with your Mapserver version you can do it by having DATA the_geom from (SELECT the_geom, oid, %acar% as qf FROM geotable) as foo USING UNIQUE oid USING SRID=4326 and then making the requests with an extra acar parameter acar=the_column_you_want A live example