Re: [mapserver-users] Line numbers of error messages in mapfiles with includes

2011-09-08 Thread Jan Hartmann
Yes, it was under 5.7. I tested it under 6 and there it works OK. Thanks, Jan On 09/07/2011 09:52 PM, Steve Lime wrote: Which version are you using? For some reason I thought this was in place in the 6.0 release. Steve On Wed, Sep 7, 2011 at 8:29 AM, Jan Hartmannj.l.h.hartm...@uva.nl

[mapserver-users] Problem compiling MapServer 6.0.1 with libpng

2011-09-08 Thread Dejan Gambin
Hi, After many trials and missings, I am still unable to compile MapServer 6.0.1 (6.0.0 also) on my Debian Lenny machine. Here is the error I get: ./libmapserver.a(mapimageio.o): In function `savePalettePNG': /home/dgambin/mapserver-6.0.1/mapimageio.c:274: undefined reference to

RE: [mapserver-users] how to define the CLASSITEM and EXPRESSION in this case?

2011-09-08 Thread Fawcett, David (MPCA)
Have you looked at this page in the documentation? http://mapserver.org/mapfile/expressions.html#arithmetic-operations-and-functions-that-return-a-number You should be able to do this. You wouldn't use a CLASSITEM, just an expression. Create individual classes for green, yellow, and red.

Re: [mapserver-users] Line numbers of error messages in mapfiles with includes

2011-09-08 Thread Jan Hartmann
Tanks Steve, not necessary. Better spend my time on updating everything to 6 ... Jan On 09/08/2011 04:22 PM, Steve Lime wrote: Changes are restricted to maplexer.l if you felt the need to patch 5.7. Let me know if you need assistance... Steve On Thu, Sep 8, 2011 at 3:39 AM, Jan

[mapserver-users] Re: Getting blank tiles in google maps

2011-09-08 Thread vaibhavgarg
(retrying message) Hi all, I am new to MapServer. I have downloaded and setup MS4W and was able to overlay the example Bath and other map data on google maps. I then created my own .map file using QGIS and supplied my data but the served tiles are completely blank(transparant or white when I

[mapserver-users] Re: MapScript WMS request

2011-09-08 Thread Mr . Puneet Kishor
a bit more investigation on producing a WMS response via Perl MapScript reveals the following error ?xml version='1.0' encoding=ISO-8859-1 standalone=no ? !DOCTYPE ServiceExceptionReport SYSTEM http://schemas.opengis.net/wms/1.1.0/exception_1_1_0.dtd; ServiceExceptionReport version=1.1.0

Re: [mapserver-users] Re: MapScript WMS request

2011-09-08 Thread thomas bonfort
it goes in map-web-metadata On Thu, Sep 8, 2011 at 19:48, Mr. Puneet Kishor punk.k...@gmail.com wrote: a bit more investigation on producing a WMS response via Perl MapScript reveals the following error  ?xml version='1.0' encoding=ISO-8859-1 standalone=no ?  !DOCTYPE

Re: [mapserver-users] Re: MapScript WMS request

2011-09-08 Thread Mr. Puneet Kishor
On Sep 8, 2011, at 1:03 PM, thomas bonfort wrote: it goes in map-web-metadata I guessed as much, but I can't fathom the syntax. The webObj doesn't seem to have any constructor, and I don't see any documentation. Could you please point me to an example? On Thu, Sep 8, 2011 at 19:48,

Re: [mapserver-users] Re: Getting blank tiles in google maps

2011-09-08 Thread forums
Have you verified that the map will display when not in tile mode?

Re: [mapserver-users] Re: MapScript WMS request

2011-09-08 Thread thomas bonfort
someone else might, I don't use mapscript On Thu, Sep 8, 2011 at 20:05, Mr. Puneet Kishor punk.k...@gmail.com wrote: On Sep 8, 2011, at 1:03 PM, thomas bonfort wrote: it goes in map-web-metadata I guessed as much, but I can't fathom the syntax. The webObj doesn't seem to have any

Re: [mapserver-users] Re: MapScript WMS request

2011-09-08 Thread Armin Burger
in PHP MapScript should be something like $map-setMetaData(ows_enable_request, *); in Python: map.setMetaData(ows_enable_request, *) armin On 08/09/2011 20:05, Mr. Puneet Kishor wrote: On Sep 8, 2011, at 1:03 PM, thomas bonfort wrote: it goes in map-web-metadata I guessed as much,

Re: [mapserver-users] Re: MapScript WMS request

2011-09-08 Thread Armin Burger
Puneet if you're interested in general in some sample code using PHP or Python MapScript for OWS request handling, please find some classes here: http://p-ows.pmapper.net/trac/browser/p-ows/trunk armin On 08/09/2011 20:05, Mr. Puneet Kishor wrote: On Sep 8, 2011, at 1:03 PM, thomas

[mapserver-users] Re: Getting blank tiles in google maps

2011-09-08 Thread vaibhavgarg
Thanks for replying. I am new to mapserver so I did now know we can do that. Anyway, yes I was able to use that url to generate the map: http://osgeo-org.1803224.n2.nabble.com/file/n6773174/MapImage.png It looks just like the result of shp2img.exe How do I identify and specify the right

Re: [mapserver-users] Re: Getting blank tiles in google maps

2011-09-08 Thread forums
Doesn't look like you have SRS on the shapefiles. ogrinfo info shows you what you need to know about the shapefiles: ogrinfo -so -al HampshireLines.shp ogrinfo -so -al HampshirePoints.shp ogrinfo -so -al HampshireAreas.shp All three currently have: Layer SRS WKT: (unknown) I've had good luck

[mapserver-users] how to specify the location of projection library, how to do it not in map file?

2011-09-08 Thread JK Chen
Hi, I specify the location proj library in the map file, which points to apache cgin-bin dirs.. Because we have 32 bit and 64 bit machines, and the paths of the apache software on those two types machines are not the same, I end up having two map files. That creates installation problems for

Re: [mapserver-users] how to specify the location of projection library, how to do it not in map file?

2011-09-08 Thread Stephen Woodbridge
On 9/8/2011 5:05 PM, JK Chen wrote: Hi, I specify the location proj library in the map file, which points to apache cgin-bin dirs.. Because we have 32 bit and 64 bit machines, and the paths of the apache software on those two types machines are not the same, I end up having two map files.

Re: [mapserver-users] how to specify the location of projection library, how to do it not in map file?

2011-09-08 Thread Stephen Woodbridge
On 9/8/2011 5:02 PM, Stephen Woodbridge wrote: On 9/8/2011 5:05 PM, JK Chen wrote: Hi, I specify the location proj library in the map file, which points to apache cgin-bin dirs.. Because we have 32 bit and 64 bit machines, and the paths of the apache software on those two types machines are

Re: [mapserver-users] how to specify the location of projection library, how to do it not in map file?

2011-09-08 Thread forums
Any chance you can just install Apache to same locations? Just override the installation directory to C:/Program Files/ on both. On Thu, Sep 8, 2011 at 4:02 PM, Stephen Woodbridge wood...@swoodbridge.comwrote: On 9/8/2011 5:05 PM, JK Chen wrote: Hi, I specify the location proj library

[mapserver-users] Re: label problem since MS6

2011-09-08 Thread Brad Posthumus
I logged a bug regarding the issue with PNGs. Oddly enough, when I switch it to GIF it appears to work normally for me, so I'm not sure what's happening in your case. http://trac.osgeo.org/mapserver/ticket/4013 -- View this message in context:

Re: [mapserver-users] how to specify the location of projection library, how to do it not in map file?

2011-09-08 Thread Stephen Woodbridge
I would try something like the following in: /etc/apache2/sites-enabled/000-default ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ Directory /usr/lib/cgi-bin AddHandlerfastcgi-script .fcgi SetEnv PROJ_LIB C:/Program Files/Apache Software Foundation/Apache2.2/cgi-bin/

Re: [mapserver-users] MapScript WMS request

2011-09-08 Thread Mr. Puneet Kishor
top posting, as most of the relevant info is self-contained in this email -- Ok, with the help of the suggestions from many of you, and by adding the following lines to my program, I am no longer getting any error. .. $map-setMetaData(ows_enable_request, *); ..

[mapserver-users] advice on best practice for MapServer layer in OL/Gmaps

2011-09-08 Thread Mr. Puneet Kishor
In another tortured thread I am seeking advice on WMS with MapScript. My ultimate intent is to provide MapServer layers in OL/Gmaps/(some_other) web app. I need to use MapScript because of the flexibility and freedom it gives me in querying my datasources, and in constructing the map. Do I

Re: [mapserver-users] MapScript WMS request

2011-09-08 Thread Daniel Morissette
Hi Puneet, A few things to try: 1- Reduce your map to a single layer if that's not already the case for your first round of tests. 2- Try a GetCapabilities instead of GetMap, and make sure your layer shows up properly and with no WARNING in the GetCapabilities XML output. Make sure the

Re: [mapserver-users] MapScript WMS request

2011-09-08 Thread Mr . Puneet Kishor
fwiw, here is the pastebin link to the XML response to my GetCapabilities request. http://pastebin.com/zu8kjNDX On Sep 8, 2011, at 6:44 PM, Mr. Puneet Kishor wrote: Great suggestions Daniel. Here is what I have to report -- On Sep 8, 2011, at 6:27 PM, Daniel Morissette wrote: Hi

Re: [mapserver-users] MapScript WMS request

2011-09-08 Thread Mr. Puneet Kishor
On Sep 8, 2011, at 6:52 PM, Daniel Morissette wrote: On 11-09-08 07:44 PM, Mr. Puneet Kishor wrote: 2- Try a GetCapabilities instead of GetMap, and make sure your layer shows up properly and with no WARNING in the GetCapabilities XML output. Make sure the name of the layer is not

Re: [mapserver-users] MapScript WMS request

2011-09-08 Thread Daniel Morissette
On 11-09-08 08:40 PM, Mr. Puneet Kishor wrote: On Sep 8, 2011, at 7:16 PM, Mr. Puneet Kishor wrote: PostGIS. lat/lng. SRID 4326 [...] I should have also added the following macromap=# SELECT ST_AsText(the_geom) FROM gmna LIMIT 1; MULTIPOLYGON(((170.095660072181

Re: [mapserver-users] MapScript WMS request

2011-09-08 Thread Mr. Puneet Kishor
On Sep 8, 2011, at 7:43 PM, Daniel Morissette wrote: On 11-09-08 08:40 PM, Mr. Puneet Kishor wrote: On Sep 8, 2011, at 7:16 PM, Mr. Puneet Kishor wrote: PostGIS. lat/lng. SRID 4326 [...] I should have also added the following macromap=# SELECT ST_AsText(the_geom) FROM gmna

Re: [mapserver-users] MapScript WMS request

2011-09-08 Thread Mr. Puneet Kishor
On Sep 8, 2011, at 8:28 PM, Daniel Morissette wrote: On 11-09-08 09:02 PM, Mr. Puneet Kishor wrote: On Sep 8, 2011, at 7:43 PM, Daniel Morissette wrote: Maybe call $map-save(/tmp/my.map) in your script after the map and layer have been populated and paste the result... that may give us

[mapserver-users] mode=tile and MapScript

2011-09-08 Thread Mr. Puneet Kishor
I am trying out mode=tile as detailed at [http://mapserver.org/output/tile_mode.html], and actually, it works great! Might be able to avoid the pains of WMS completely. However, it works great with MapServer CGI. What if I want to use MapScript? In other words, instead of var urlTemplate