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 Hartmann wrote: Sometimes it's diff

[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 `png_set_longj

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

2011-09-08 Thread Steve Lime
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 Hartmann wrote: > 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 w

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

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

2011-09-08 Thread Mr. Puneet Kishor
On Sep 7, 2011, at 10:29 PM, Frank Warmerdam wrote: > On 11-09-07 08:18 PM, Mr. Puneet Kishor wrote: >> I would really appreciate insight from someone well-versed in the ins and >> outs of WMS via MapScript. Looking at the discussion at >> [http://trac.osgeo.org/mapserver/ticket/670], the `img

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

[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 http://schemas.opengis.net/wms/1.1.0/exception_1_1_0.dtd";> msWMSDispatch(): WMS server error. WMS request not enabled. Check wms/ows_enable_request settings. So, it seems I ha

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 wrote: > a bit more investigation on producing a WMS response via Perl MapScript > reveals the following error > >   >   "http://schemas.opengis.net/wms/1.1.0/exception_1_1_0.dtd";> >   >   >  msWMSDispatch(): WMS ser

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:

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? http://localhost:8088/cgi-bin/mapserv.exe?map=C:/ms4w/apps/gmap/htdocs/hampshire.map&layers=HampshireAreas&mode=map

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 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 constructor, an

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

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 bonfort

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

2011-09-08 Thread Frank Warmerdam
Puneet, I would add that there is a lot of other metadata that you need to set on a map in order to get WxS services like WMS working. If you haven't done that either you are going to be frustrated. I would suggest getting your script working initially with an actual mapfile and then if you real

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

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 usi

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

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

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 not

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 wrote: > On 9/8/2011 5:05 PM, JK Chen wrote: > >> Hi, >> >> I specify the location proj library in the map file,

[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: http://osgeo-org.1803224.n2.nabble.com/label-problem

RE: [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 Steve, How to do it via Apache configuration? What is the syntax? Is it like this: "PROJ_LIB" "./cgi-bin/" Nope, we can't over-write the path names. Thanks for your helps. JK -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osge

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/ AddHandlerfastcgi-script .fcgi SetEnv PROJ_LIB "C:/Program Files/Apache Software Foundation/Apache2.2/cgi-bin/" AllowOverride None

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 hav

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 name

Re: [mapserver-users] MapScript WMS request

2011-09-08 Thread Mr. Puneet Kishor
Great suggestions Daniel. Here is what I have to report -- On Sep 8, 2011, at 6:27 PM, Daniel Morissette wrote: > 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. It is already reduced to a single la

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 Daniel Morissette
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 changed: if you have multiple layers with the same name then th

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 laye

Re: [mapserver-users] MapScript WMS request

2011-09-08 Thread Mr . Puneet Kishor
On Sep 8, 2011, at 7:16 PM, Mr. Puneet Kishor wrote: > > 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 t

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 65.6251237164987,170.158

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_A

Re: [mapserver-users] MapScript WMS request

2011-09-08 Thread Daniel Morissette
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 a hint... wow! this is a super-awesome debugging tech

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

[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