[mapserver-users] How to set MINSCALEDENOM for map file

2009-09-21 Thread Mr. Bic Phuong
Dear everyone, I have a webgis using MapServer + OpenLayers+ TileCache. To optimize apearance of map, I use MAXSCALEDENOM but it's not lucky to make it works. First, I take a look on the scale bar for scale on every levels (for example at level 8 the scale is: 1:6478, at level 10 the scale is

[mapserver-users] Mapscript taking too long on my production server

2009-09-21 Thread Nelson Correia
Hi all, I'm doing an application in C# that uses mapscript to generate images. The features come from a postgis database. On my development machine all goes well and the image is always generated in less than 1 second. When I deployed the application to my two production servers

Re: [mapserver-users] How to run mapserv under fastcgi

2009-09-21 Thread Alphatran
Jeff McKenna wrote: I can tell you how MapServer for Windows (MS4W) is configured for FastCGI (see instructions at http://www.maptools.org/ms4w/index.phtml?page=README_INSTALL_3.0.html#f-fastcgi). MS4W's Apache is configured so that users can call /fcgi-bin/mapserv.exe instead

Re: [mapserver-users] MINSCALEDENOM did not work?

2009-09-21 Thread Alphatran
Rahkonen Jukka wrote: Hi, Minscaledenom does work for me as supposed. If I set it to value 1:1 I can see the layer in scale 1:11000 because scale demoninator is bigger than my limit. In scale 1:9000 it does not show. But I see that you have understood correctly that because map

Re: [mapserver-users] MINSCALEDENOM did not work?

2009-09-21 Thread Rahkonen Jukka
Hi, Try to get something written into Mapserver log. Add something like CONFIG MS_ERRORFILE d:/program files/ms4w/tmp/ms_error.txt into MAP object, and DEGUG 5 into LAYER. It might be easier to understand what happens by using something else than Openlayers application as a client first.

Re: [mapserver-users] display feature name beside feature

2009-09-21 Thread sunny74
Hi Lars, I have added the fontset file and also the Label and other definitions at the appropriate places but still the Labels are not being displayed for the layer RailwayStation. My map file now looks like this: # Map file created from QGIS project file D:/QGIS/newwr.qgs # Edit this file to

[mapserver-users] Creating maps from external gml files

2009-09-21 Thread Lid Sjur Ringheim
Hi, I'm developing an application that creates gml files and displays them in OpenLayers. This creates a small problem when the amount of point data becomes to large, so I was thinking of using a wms server to create a single layer based on the data. The problem I'm now facing is that I can't

[mapserver-users] Upgrading ms4w setup.exe installer

2009-09-21 Thread Lars Westerlind
Hi all, We would like to upgrade our MapServer which was installed using setup.exe installer installation. Unfortunately there is no such for 5.4.2, and we do want to keep the directory structure, port settings Etc as we have from our current install. Is there a pointer to some howto? /Lars

Re: [mapserver-users] Mapscript taking too long on my production server

2009-09-21 Thread Andy Colson
Nelson Correia wrote: Hi all, I'm doing an application in C# that uses mapscript to generate images. The features come from a postgis database. On my development machine all goes well and the image is always generated in less than 1 second. When I deployed the application to my two

Re: [mapserver-users] Mapscript taking too long on my production server

2009-09-21 Thread Tamas Szekeres
Nelson, Depending on your MapSever version you could set up the debug options in your mapfile in order to see the timings when the layers are drawn. like: CONFIG MS_ERRORFILE /ms4w/tmp/ms_error.txt DEBUG 5 For more info about the debugging options see: http://mapserver.org/mapfile/map.html

Re: [mapserver-users] MINSCALEDENOM did not work?

2009-09-21 Thread Alphatran
Rahkonen Jukka wrote: Hi, Try to get something written into Mapserver log. Add something like CONFIG MS_ERRORFILE d:/program files/ms4w/tmp/ms_error.txt into MAP object, and DEGUG 5 into LAYER. It might be easier to understand what happens by using something else than Openlayers

Re: [mapserver-users] display feature name beside feature

2009-09-21 Thread Steve Lime
And you can see the railway points? On 9/21/2009 at 7:34 AM, in message 1253536453758-3684929.p...@n2.nabble.com, sunny74 sb@hotmail.com wrote: Hi Lars, I have added the fontset file and also the Label and other definitions at the appropriate places but still the Labels are not being

[mapserver-users] dynamic queries

2009-09-21 Thread Paul Alarcon
Greetings users, im using a php mapscript , and im like to know if there is a way to make a dynamic query using mapserver, into the layers made in postgis, im using o.mapper as framework, im using mapserver 5.4.1 Thanks a lot Paul -- View this message in context:

Re: [mapserver-users] dynamic queries

2009-09-21 Thread Pavel Iacovlev
/** $select - SELECT query $srid - projection srid $unique - unique table column, example: gid */ $layer-set('data', the_geom from ($select) as tmp using SRID={$srid} using unique $unique); On Mon, Sep 21, 2009 at 8:00 PM, Paul Alarcon paul_pa...@hotmail.com wrote: Greetings users, im using a

Re: [mapserver-users] mapserver files to subdomain results in '500 Internal Server Error' when mapserv executable accessed through url

2009-09-21 Thread Ted Spradley
should read 'all of my mapping activity to a subdomain: maps.domain.com -- View this message in context: http://n2.nabble.com/mapserver-files-to-subdomain-results-in-500-Internal-Server-Error-when-mapserv-executable-accessed-tl-tp3687559p3687574.html Sent from the Mapserver - User mailing

Re: [mapserver-users] mapserver files to subdomain results in '500Internal Server Error' when mapserv executable accessed through url

2009-09-21 Thread Steve Lime
Typically I would think this is a linking error. That is, the mapserv binary can't find the shared libs it needs to run. You probably need to configure apache further. There's a LD_LIBRARY_PATH env variable that you can look into setting. Steve On 9/21/2009 at 2:03 PM, in message

Re: [mapserver-users] mapserver files to subdomain results in '500 Internal Server Error' when mapserv executable accessed through url

2009-09-21 Thread Andy Colson
Ted Spradley wrote: Hi all, I decided it would be a good idea to move all of my mapping activity to a subdomain: maps.subdomain.com Accessing mapserv by 'http://maps.domain.com/cgi-bin/mapserv' the result is '500 Internal Server Error'. Accessing mapserv by 'http://domain.com/cgi-bin/mapserv'

Re: [mapserver-users] mapserver files to subdomain results in '500Internal Server Error' when mapserv executable accessed through url

2009-09-21 Thread Ted Spradley
Thanks Steve. I added SetEnv LD_LIBRARY_PATH /usr/local/lib to /etc/httpd/conf/httpd.conf as follows: Directory /var/www/cgi-bin AllowOverride None Options None Order allow,deny Allow from all SetEnv LD_LIBRARY_PATH /usr/local/lib /Directory and restarted Apache, but I know

Re: [mapserver-users] mapserver files to subdomain results in '500 Internal Server Error' when mapserv executable accessed through url

2009-09-21 Thread Ted Spradley
The Apache error_log shows: error_log shows: [Mon Sep 21 12:40:20 2009] [error] [client 98.200.238.238] Premature end of script headers: mapserv Thanks, Ted S. Andy Colson wrote: Ted Spradley wrote: Hi all, I decided it would be a good idea to move all of my mapping activity to a

[mapserver-users] MapServer failing to find any result, causing WMSGetFeatureInfo hang

2009-09-21 Thread P Kishor
Greetings, I have a 1 km. sq. grid layer stored in Pg/PostGIS (8.4/1.4.0) served by MapServer 5.4.2. If I query for WMSGetFeatureInfo (from OpenLayers 2.8) while zoomed out, the following queries run in the backend, and xmin, xmax, ymin, ymax values are returned to the user and presented in a

Re: [mapserver-users] mapserver files to subdomain results in '500 Internal Server Error' when mapserv executable accessed through url

2009-09-21 Thread John Callahan
I was getting the exact same error when accessing the GetCapabilities output. For me, the output was getting truncated at 4kb, resulting in the premature end of script headers message. Even if I ran the script from the command line, the error was still there (if output was to a file, such

Re: [mapserver-users] MapServer failing to find any result, causing WMSGetFeatureInfo hang

2009-09-21 Thread Paul Ramsey
Can you provide a table dump, a map file and a URL that exercise this condition? if you can provide a minimal test case, I'll debug. (PS, open a ticket and attach the collateral to it (dump, map file, url)) P On Mon, Sep 21, 2009 at 5:29 PM, P Kishor punk.k...@gmail.com wrote: Greetings, I

[mapserver-users] build mapscript.so for linux?

2009-09-21 Thread joel ml
I need help to build the library mapscript.so to work with java mapscript, I already have the source code of mapserver, and swig 1.3.40, everything installed on linux, which are the steps to generate the library mapscript.so? tank's. Yahoo! Cocina Encontra las mejores recetas con

Re: [mapserver-users] build mapscript.so for linux?

2009-09-21 Thread Andy Colson
joel ml wrote: I need help to build the library mapscript.so to work with java mapscript, I already have the source code of mapserver, and swig 1.3.40, everything installed on linux, which are the steps to generate the library mapscript.so? tank's. Yahoo! Cocina Encontra las mejores

Re: [mapserver-users] mapserver files to subdomain results in '500 Internal Server Error' when mapserv executable accessed through url

2009-09-21 Thread Andy Colson
Ted Spradley wrote: The Apache error_log shows: error_log shows: [Mon Sep 21 12:40:20 2009] [error] [client 98.200.238.238] Premature end of script headers: mapserv Thanks, Ted S. Andy Colson wrote: Ted Spradley wrote: Hi all, I decided it would be a good idea to move all of my mapping

Re: [mapserver-users] mapserver files to subdomain results in '500 Internal Server Error' when mapserv executable accessed through url

2009-09-21 Thread Ted Spradley
Thanks Andy. Yes, changed mapserv to a different name, and both 404's. access_log: - - [21/Sep/2009:21:35:25 -0500] GET /cgi-bin/mapserv HTTP/1.1 404 1464 - Mozilla/5.0 (Windows; U; Windows NT 5.1; en- US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 (.NET CLR 3.5.30729) - -

Re: [mapserver-users] mapserver files to subdomain results in '500 Internal Server Error' when mapserv executable accessed through url

2009-09-21 Thread Andy Colson
Ted Spradley wrote: Thanks Andy. Yes, changed mapserv to a different name, and both 404's. access_log: - - [21/Sep/2009:21:35:25 -0500] GET /cgi-bin/mapserv HTTP/1.1 404 1464 - Mozilla/5.0 (Windows; U; Windows NT 5.1; en- US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 (.NET CLR 3.5.30729) -