[mapserver-users] disappearing point features in North America
I have a problem that may be down to OpenLayers or to Mapserver, or (just as likely) to me. Basically I am using OL to request WMS maps from Mapserver, and the map consists of point features with a global spread, typically around 100 points in each map. The points are defined in a table which has lat/lon in decimal degrees, and these are converted to 900913 by Mapserver where my mapfile has an overall projection of epsg: 900913 but the points layer has projection epsg: 4326. The map is defined in OL with extents: -20037508.34, -20037508.34, 20037508.34, 20037508.34 and the mapfile has the same extents applied. This all works fine when a map is first displayed, all of the points are present on the map. However when I scroll the map left or right there is a 'dead spot' where all the points in North America disappear and then re-appear, either side of the dead spot. Looking with Firebug at the bounding box that OL uses to request the map from Mapserver I can see that the points disappear when the bounding box is between left bounds of about -2370 and -3370. Only the points in North America are affected, never those in Europe or Asia. I have been wrestling with this for quite a while, experimenting with extents etc, all without any effect. Does anyone recognise where my problem may lie, or else have any suggestions how to diagnose what is going on? Chris ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] disappearing point features in North America
Hi Jerl Eurueka! +over did it! Thanks, I owe you one. Chris From: jerl.simp...@craniumjuice.com [mailto:jerl.simp...@craniumjuice.com] On Behalf Of forums Sent: 01 February 2012 13:17 To: Chris Green Cc: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] disappearing point features in North America Chris: I had a similar issue, it was suggested to me to add +over to my epsg definitions file. Mine now looks like: 4326 +proj=longlat +ellps=WGS84 +datum=WGS84 +over +no_defs 900913 +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +over +no_defs That seemed to make a difference, but I also upgraded PROJ4 at the same time. Jerl On Wed, Feb 1, 2012 at 5:38 AM, Chris Green chris.gr...@ibstv.co.uk wrote: I have a problem that may be down to OpenLayers or to Mapserver, or (just as likely) to me. Basically I am using OL to request WMS maps from Mapserver, and the map consists of point features with a global spread, typically around 100 points in each map. The points are defined in a table which has lat/lon in decimal degrees, and these are converted to 900913 by Mapserver where my mapfile has an overall projection of epsg: 900913 but the points layer has projection epsg: 4326. The map is defined in OL with extents: -20037508.34, -20037508.34, 20037508.34, 20037508.34 and the mapfile has the same extents applied. This all works fine when a map is first displayed, all of the points are present on the map. However when I scroll the map left or right there is a 'dead spot' where all the points in North America disappear and then re-appear, either side of the dead spot. Looking with Firebug at the bounding box that OL uses to request the map from Mapserver I can see that the points disappear when the bounding box is between left bounds of about -2370 and -3370. Only the points in North America are affected, never those in Europe or Asia. I have been wrestling with this for quite a while, experimenting with extents etc, all without any effect. Does anyone recognise where my problem may lie, or else have any suggestions how to diagnose what is going on? Chris ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- A computer without Windows is like chocolate cake without mustard. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] RFC81: offset labels with leader lines
Hi all I see that there was a proposal a month ago to implement labels with 'leader lines', which I presume means that with position: 'auto', label positions will be calculated at a distance from the feature when required by collisions. This is exactly what I am looking for, can anyone tell me if this is going ahead and if so when it is likely to be implemented? Chris ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] PHP Mapscript: getFeature / addFeature
Dear List I'm struggling with what should be (I think) quite simple. I want to get a feature from one layer of a map then add it to another layer. I am using Mapserver 6.0 and PHP mapscript like so: $map = ms_newMapobj(path/to/.map); $layer1=$map-getLayerByName(countries); $layer2=$map-getLayerByName(highlightCountry); $country='France'; $layer1-queryByAttributes('NAME', $country , MS_SINGLE ); $shape = $layer1-getShape($layer1-getResult(0)); $layer2-open(); $layer2-addFeature($shape); ## I get a Mapserver 'internal error' at this point ## $layer2-close(); $image=$map-draw(); Extract from my mapfile: LAYER NAME countries DATA world STATUS default TYPE line CLASS STYLE COLOR 255 255 255 WIDTH 1 END # style END # class END #layer LAYER NAME highlightCountry STATUS default TYPE line CLASS STYLE COLOR 255 255 0 WIDTH 4 END # style END # class END # layer Can anyone help? Chris ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] Map size question?
Hi David That was very good advice. Thanks! Regards, Chris From: Fawcett, David (MPCA) [mailto:david.fawc...@state.mn.us] Sent: 18 August 2011 18:38 To: Chris Green; mapserver-users@lists.osgeo.org Subject: RE: [mapserver-users] Map size question? Chris, If you are in tile mode, I assume that you probably don't want an embedded legend on each tile. Have you thought about doing a separate call/request/object for the legend? If you were doing this via CGI, I would recommend doing a separate mode=legend request. David. From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Chris Green Sent: Thursday, August 18, 2011 12:04 PM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] Map size question? After quite a while thinking I could not produce a legend I have realised that the legend is actually there, just off the edge of my map. Now I see that although my map file specifies a map size of 640 x 480 pixels, if in single tile mode the map image being produced is actually 1110 x 660 pixels. Alternatively with multiple tiles I get 12 tiles of 250 x 250 pixels which is 1024 x 768 pixels. It seems that the size parameter in the map file is being ignored (even setting the values to 0 0 or omitting the SIZE parameter altogether makes no difference). MAXSIZE doesn't seem to help either. I can't find a way to get the image size that I want, can anyone help? Chris From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Chris Green Sent: 18 August 2011 08:02 To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] mapsript legend Hi all I have a map created via Mapscript under Mapserver 6.0 but I can't find a way to add a legend. Recent examples are hard to find but I found the following dating from 2002 which seemed simple enough: $legend = $map-legend; $legend-set(width,40); $legend-set(height,100); $legend-imagecolor-setRGB(240,220,200); # tan $legend-outlinecolor-setRGB(1,1,1); # black $legend-set(status, MS_EMBED); $legend-set(position, MS_UL); // SET LEGEND LABEL PROPERTIES $lg_label = $legend-label; $lg_label-set(font, arial); $lg_label-set(type, MS_TRUETYPE); $lg_label-set(size, 10); $lg_label-set(minsize, 6); $lg_label-set(maxsize, 12); $lg_label-color-setRGB(100,100,100); $legend-set(postlabelcache, MS_TRUE); // DRAW LEGEND $legendImage=$map-drawLegend(); Unfortunately this produces no output. Can anyone give me any clues why? Chris ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] mapsript legend
Hi all I have a map created via Mapscript under Mapserver 6.0 but I can't find a way to add a legend. Recent examples are hard to find but I found the following dating from 2002 which seemed simple enough: $legend = $map-legend; $legend-set(width,40); $legend-set(height,100); $legend-imagecolor-setRGB(240,220,200); # tan $legend-outlinecolor-setRGB(1,1,1); # black $legend-set(status, MS_EMBED); $legend-set(position, MS_UL); // SET LEGEND LABEL PROPERTIES $lg_label = $legend-label; $lg_label-set(font, arial); $lg_label-set(type, MS_TRUETYPE); $lg_label-set(size, 10); $lg_label-set(minsize, 6); $lg_label-set(maxsize, 12); $lg_label-color-setRGB(100,100,100); $legend-set(postlabelcache, MS_TRUE); // DRAW LEGEND $legendImage=$map-drawLegend(); Unfortunately this produces no output. Can anyone give me any clues why? Chris ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Map size question?
After quite a while thinking I could not produce a legend I have realised that the legend is actually there, just off the edge of my map. Now I see that although my map file specifies a map size of 640 x 480 pixels, if in single tile mode the map image being produced is actually 1110 x 660 pixels. Alternatively with multiple tiles I get 12 tiles of 250 x 250 pixels which is 1024 x 768 pixels. It seems that the size parameter in the map file is being ignored (even setting the values to 0 0 or omitting the SIZE parameter altogether makes no difference). MAXSIZE doesn't seem to help either. I can't find a way to get the image size that I want, can anyone help? Chris From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Chris Green Sent: 18 August 2011 08:02 To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] mapsript legend Hi all I have a map created via Mapscript under Mapserver 6.0 but I can't find a way to add a legend. Recent examples are hard to find but I found the following dating from 2002 which seemed simple enough: $legend = $map-legend; $legend-set(width,40); $legend-set(height,100); $legend-imagecolor-setRGB(240,220,200); # tan $legend-outlinecolor-setRGB(1,1,1); # black $legend-set(status, MS_EMBED); $legend-set(position, MS_UL); // SET LEGEND LABEL PROPERTIES $lg_label = $legend-label; $lg_label-set(font, arial); $lg_label-set(type, MS_TRUETYPE); $lg_label-set(size, 10); $lg_label-set(minsize, 6); $lg_label-set(maxsize, 12); $lg_label-color-setRGB(100,100,100); $legend-set(postlabelcache, MS_TRUE); // DRAW LEGEND $legendImage=$map-drawLegend(); Unfortunately this produces no output. Can anyone give me any clues why? Chris ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] OGR to MySQL
Hi users I'm having some trouble with an OGR connection to a MySQL database. The data I'm trying to access was created using QGIS as a line layer and saved in a MySQL table as a BLOB in a geometry column. I can access and properly display this line data using QGIS, but not so far via Mapserver - nothing is drawn and I can't see any error. I am using Mapserver 6.0 and my mapfile is very similar to the example in theMapserver / MYSQL documentation: LAYER NAME testLine TYPE LINE STATUS DEFAULT CONNECTIONTYPE OGR CONNECTION mysql:testDB,user=admin,password=password,port=3306 DATA SELECT Geometry from testLine CLASS STYLE COLOR 0 0 0 WIDTH 2 END # style END # class END # layer If I look at the MySQL table using OGRinfo I see the following: Layer name: testLine Geometry: Unknown (any) Feature Count: 0 Layer SRS WKT: (unknown) FID Coumn = id Geometry Column = Geometry The issue seems to be that OGRInfo and therefore MapServer does not recognise any features in the table, but QGIS using access to the same table finds and displays the features. Anyone have any ideas what I am doing wrong? Chris ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
FW: [mapserver-users] php-Mapscript and MySQL layer syntax
Hello to all, especially PHP-Mapscript users: Apologies for asking the same question twice, but I got no responses to the below and I am still stuck on both problems. Very happy to receive some help on either but especially the first one.. Chris From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Chris Green Sent: 27 June 2011 09:05 To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] php-Mapscript and MySQL layer syntax Hi to all I am using PHP5-Mapscript together with Mapserver 6.0 and I have a layer which obtains its data from a MySQL database via an OGR connection. This all works, but I am having trouble with two items of PHP-Mapscript syntax: 1. $layer-getExtent() - I can't make this work with my layer: can someone confirm if it works with a MySQL layer and if so give a syntax example? 2. $query= $layer-queryByAttributes(null, $expression, MS_MULTIPLE); On the 2nd question I came across some advice from Frank Wamerdam dated 2006 which said: The trick with OGR connections to pass the filter through to OGR is to use a query expression starting with WHERE. So you might do something like: expr = 'WHERE ' + $qField + ' = ' + $qValue $qLayer-queryByAttributes(null,$expr,MS_MULTIPLE); (forgive my incorrect PHP syntax, I'm just trying to get the idea accross). However I can't come up with any expression that gives me any results at all. Is there any current advice on how to do this kind of query over an OGR connection? Chris ___ 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] php-Mapscript and MySQL layer syntax
Hi to all I am using PHP5-Mapscript together with Mapserver 6.0 and I have a layer which obtains its data from a MySQL database via an OGR connection. This all works, but I am having trouble with two items of PHP-Mapscript syntax: 1. $layer-getExtent() - I can't make this work with my layer: can someone confirm if it works with a MySQL layer and if so give a syntax example? 2. $query= $layer-queryByAttributes(null, $expression, MS_MULTIPLE); On the 2nd question I came across some advice from Frank Wamerdam dated 2006 which said: The trick with OGR connections to pass the filter through to OGR is to use a query expression starting with WHERE. So you might do something like: expr = 'WHERE ' + $qField + ' = ' + $qValue $qLayer-queryByAttributes(null,$expr,MS_MULTIPLE); (forgive my incorrect PHP syntax, I'm just trying to get the idea accross). However I can't come up with any expression that gives me any results at all. Is there any current advice on how to do this kind of query over an OGR connection? Chris ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Mapserver layer - MySQL connection
Hi all I'm using Mapserver 6.0 and I have GDAL 1.8.0 installed, running under Ubuntu 10.04. I am trying to make a connection from a layer to MySQL, following the guidance given in the MySQL section of Mapserver documentation. My problem is that when I try to connect using ogrinfo like: ~# ogrinfo mysql:testDB, user=root, password=mysql, port=3306 I get a mySQL connect failure message ERROR 1: MySQL connect failed for: testDB, Access denied for user'root'@'localhost' (using password: NO) It seems that MySQL is refusing this connection request because the password that I entered in the ogrinfo command is not being passed to MySQL and I can't find a way to overcome this. The same user name and password work fine if I access MySQL directly rather than via ogrinfo. Does anyone have an idea what my problem is? Chris ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] Mapserver layer - MySQL connection
Jukka You are a genius -it worked! Thanks -Original Message- From: Rahkonen Jukka [mailto:jukka.rahko...@mmmtike.fi] Sent: 22 June 2011 08:26 To: Chris Green; mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] Mapserver layer - MySQL connection Hi, Try first by removing the space characters after separating commas. -Jukka Rahkonen- Lähettäjä: mapserver-users-boun...@lists.osgeo.org [mapserver-users-boun...@lists.osgeo.org] k#228;ytt#228;j#228;n Chris Green [chris.gr...@ibstv.co.uk] puolesta Lähetetty: 22. kesäkuuta 2011 10:12 Vastaanottaja: mapserver-users@lists.osgeo.org Aihe: [mapserver-users] Mapserver layer - MySQL connection Hi all Im using Mapserver 6.0 and I have GDAL 1.8.0 installed, running under Ubuntu 10.04. I am trying to make a connection from a layer to MySQL, following the guidance given in the MySQL section of Mapserver documentation. My problem is that when I try to connect using ogrinfo like: ~# ogrinfo mysql:testDB, user=root, password=mysql, port=3306 I get a mySQL connect failure message ERROR 1: MySQL connect failed for: testDB, Access denied for userroot@localhost (using password: NO) It seems that MySQL is refusing this connection request because the password that I entered in the ogrinfo command is not being passed to MySQL and I cant find a way to overcome this. The same user name and password work fine if I access MySQL directly rather than via ogrinfo. Does anyone have an idea what my problem is? Chris ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] MySQL connection: so near, yet so far...
Thanks Stephen That was a useful pointer, I have the OGR connection working now. One remaining problem: the source data in my MySQL database is unprojected lat/lon, and I want to project to Google 900913. It seems that it should be possible to get OGR to do this within the ovf file by including an SRS statement like LayerSRSEPSG:900913/LayerSRS, but this doesn't work. Adding a projection statement to the layer doesn't help either. Anyone know how to do this? Chris -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Stephan Holl Sent: 22 June 2011 12:56 To: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] MySQL connection: so near, yet so far... Hello Chris, Chris Green chris.gr...@ibstv.co.uk, [20110622 - 12:17:35] I am trying to establish a MySQL connection to a Mapserver 6.0 layer using OGR. After much trial and error (mostly error) I have got to the point where I have an ovf file which I can test using ogrinfo, but which I cannot make work in a layer. My ovf file (OGR_test.ovf) is OGRVRTDataSource OGRVRTLayer name=OGR_test SrcDataSourcemysql:testDB,user=root,password=mysql,port=3306,tables= testTa ble/SrcDataSource SrcSQLSELECT City, Latitude, Longitude FROM testTable/SrcSQL GeometryTypewkbPoint/GeometryType GeometryField encoding=PointFromColumns x=Longitude y=Latitude/ /OGRVRTLayer /OGRVRTDataSource I can successfully test this and see the data in testTable via: ~# ogrinfo var/www/vhosts/mysite/httpdocs/data/OGR_test.ovf However when I create a test layer I cannot establish the OGR connection. I am trying with: LAYER NAME testLayer STATUS DEFAULT TYPE POINT CONNECTIONTYPE OGR CONNECTION OGR_test.ovf DATA OGR_test CLASS NAME MyClass STYLE SYMBOL 'circle' SIZE 15 COLOR 0 255 0 END END END This produces an internal server error. I have also tried using an absolute path to OGR_test.ovf, still no success. It seems that I have not got the CONNECTION and DATA parameters right but after reading the MySQL and the OGR sections in the Mapserver documentation many times I still can't figure out what I'm doing wrong. Can someone help? Just a guess. Make sure you have the exact same env-vars set for apache as you have set within the shell your ogrinfo-command works. Sometimes there can be a differnces there? Best Stephan -- Stephan Holl stephan.h...@intevation.de | Tel.: +49 (0)541-33 508 3663 Intevation GmbH, Neuer Graben 17, 49074 OS | AG Osnabrück - HR B 18998 Geschäftsführer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] MySQL connection: so near, yet so far...
Thanks Mike. Outstanding. Chris -Original Message- From: Smith, Michael D ERDC-CRREL-NH [mailto:michael.sm...@usace.army.mil] Sent: 22 June 2011 15:31 To: Chris Green; mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] MySQL connection: so near, yet so far... Chris, You'd want to set the projection in your vrt to the projection of the data (4326). Also set the projection of your layer in mapserver to 4326. Then set the projection of the map to 900913 to get Mapserver to reproject. Mike -- Michael Smith Remote Sensing/GIS Center US Army Corps of Engineers Hanover, NH On 6/22/11 10:16 AM, Chris Green chris.gr...@ibstv.co.uk wrote: Thanks Stephen That was a useful pointer, I have the OGR connection working now. One remaining problem: the source data in my MySQL database is unprojected lat/lon, and I want to project to Google 900913. It seems that it should be possible to get OGR to do this within the ovf file by including an SRS statement like LayerSRSEPSG:900913/LayerSRS, but this doesn't work. Adding a projection statement to the layer doesn't help either. Anyone know how to do this? Chris -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Stephan Holl Sent: 22 June 2011 12:56 To: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] MySQL connection: so near, yet so far... Hello Chris, Chris Green chris.gr...@ibstv.co.uk, [20110622 - 12:17:35] I am trying to establish a MySQL connection to a Mapserver 6.0 layer using OGR. After much trial and error (mostly error) I have got to the point where I have an ovf file which I can test using ogrinfo, but which I cannot make work in a layer. My ovf file (OGR_test.ovf) is OGRVRTDataSource OGRVRTLayer name=OGR_test SrcDataSourcemysql:testDB,user=root,password=mysql,port=3306,tables= testTa ble/SrcDataSource SrcSQLSELECT City, Latitude, Longitude FROM testTable/SrcSQL GeometryTypewkbPoint/GeometryType GeometryField encoding=PointFromColumns x=Longitude y=Latitude/ /OGRVRTLayer /OGRVRTDataSource I can successfully test this and see the data in testTable via: ~# ogrinfo var/www/vhosts/mysite/httpdocs/data/OGR_test.ovf However when I create a test layer I cannot establish the OGR connection. I am trying with: LAYER NAME testLayer STATUS DEFAULT TYPE POINT CONNECTIONTYPE OGR CONNECTION OGR_test.ovf DATA OGR_test CLASS NAME MyClass STYLE SYMBOL 'circle' SIZE 15 COLOR 0 255 0 END END END This produces an internal server error. I have also tried using an absolute path to OGR_test.ovf, still no success. It seems that I have not got the CONNECTION and DATA parameters right but after reading the MySQL and the OGR sections in the Mapserver documentation many times I still can't figure out what I'm doing wrong. Can someone help? Just a guess. Make sure you have the exact same env-vars set for apache as you have set within the shell your ogrinfo-command works. Sometimes there can be a differnces there? Best Stephan -- Stephan Holl stephan.h...@intevation.de | Tel.: +49 (0)541-33 508 3663 Intevation GmbH, Neuer Graben 17, 49074 OS | AG Osnabrück - HR B 18998 Geschäftsführer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner ___ 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] PHP-Mapscript - clusterObj ?
Hi list I am running Mapserver 6.0 under Ubuntu 10.04 with PHP-Mapscript and I have been trying to get clustering to work with Mapscript. Actually it works fine when using a mapfile very similar to the 'Clustering Railway Stations' example given in the 6.0 documentation if I use the mapfile to generate a WMS layer without Mapscript. However using the same mapfile I can't get the clustered output to appear with Mapscript when I try the usual construction along the lines of: $map = ms_newMapobj(/var/www/vhosts/mysite/httpdocs/test.map); $layer1=$map-getLayerByName(test1); .. .. .. $image=$map-draw(); $image_url=$image-saveWebImage(); This structure works on a non-clustered layer in the same mapfile. I can see in the documentation for MS RFC 69 that the idea is to use a new Mapscript object called clusterObj, but I can't find any information on how to construct a clusterObj and several hours of trial and error yesterday didn't get me very far. Can someone tell me how I should set up and use clusterObj? Chris ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] PHP-Mapscript - clusterObj ?
Hi Tamas Thanks for your comment. My first thought was that it should be available from layerObj, and I spent quite a while trying variations like: $map = ms_newMapobj(/var/www/vhosts/mysite/httpdocs/test.map); $layer1=$map-getLayerByName(test1); $cluster1=$layer1-getClusterByName(“cluster1”); But unfortunately I couldn’t make anything like that work. Anyone know how this clusterObj works in php-Mapscript? Chris From: Tamas Szekeres [mailto:szeker...@gmail.com] Sent: 20 June 2011 08:41 To: Chris Green Cc: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] PHP-Mapscript - clusterObj ? Chris, clusterObj should not be constructed from scratch, it is an existing member of layerObj. Not sure how is that working in PHP, however. Best regards, Tamas 2011/6/20 Chris Green chris.gr...@ibstv.co.uk Hi list I am running Mapserver 6.0 under Ubuntu 10.04 with PHP-Mapscript and I have been trying to get clustering to work with Mapscript. Actually it works fine when using a mapfile very similar to the ‘Clustering Railway Stations’ example given in the 6.0 documentation if I use the mapfile to generate a WMS layer without Mapscript. However using the same mapfile I can’t get the clustered output to appear with Mapscript when I try the usual construction along the lines of: $map = ms_newMapobj(/var/www/vhosts/mysite/httpdocs/test.map); $layer1=$map-getLayerByName(test1); .. .. .. $image=$map-draw(); $image_url=$image-saveWebImage(); This structure works on a non-clustered layer in the same mapfile. I can see in the documentation for MS RFC 69 that the idea is to use a new Mapscript object called clusterObj, but I can’t find any information on how to construct a clusterObj and several hours of trial and error yesterday didn’t get me very far. Can someone tell me how I should set up and use clusterObj? Chris ___ 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
RE: [mapserver-users] PHP-Mapscript - clusterObj ?
Daniel This works $map = ms_newMapobj(/var/www/vhosts/mysite/httpdocs/test.map); $layer1=$map-getLayerByName(test1); $layer1-cluster; Thanks very much for the help! Chris -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Daniel Morissette Sent: 20 June 2011 15:26 To: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] PHP-Mapscript - clusterObj ? On 11-06-20 10:22 AM, Daniel Morissette wrote: On 11-06-20 10:02 AM, Chris Green wrote: Hi Tamas Thanks for your comment. My first thought was that it should be available from layerObj, and I spent quite a while trying variations like: $map = ms_newMapobj(/var/www/vhosts/mysite/httpdocs/test.map); $layer1=$map-getLayerByName(test1); $cluster1=$layer1-getClusterByName(“cluster1”); But unfortunately I couldn’t make anything like that work. Anyone know how this clusterObj works in php-Mapscript? AFAIK there is only one cluster object per layer, and according to the PHP MapScript source, you should be able to reach it as $layer1-cluster. The same methods as in SWIG MapScript seem to be implemented for the clusterObj in PHP MapScript. If that doesn't work then please let us know and we'll look deeper. ... and I see that clusterObj is documented in: http://mapserver.org/mapscript/php/index.html#clusterobj ... and the ref to the clusterObj in the layerObj is listed in: http://mapserver.org/mapscript/php/index.html#layerobj -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 ___ 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
RE: [mapserver-users] upgrade Mapserver 5.4 to 6.0 (gulp!)
Hi Brent Thank you for your very helpful comments, much appreciated. It is pretty clear to me that I have to start by changing my elderly Fedora to something better suited to supporting GIS applications including Mapserver 6.0. It is strange - I'm not at all afraid of PHP/Mapscript (although the documentation is not great) or of Javascript, but the whole Linux world is just so confusing that I get a form of paralysis by analysis soon after I start trying to compare the different options. Anyway I will certainly take a look at Ubuntu / OpenSuse. Chris From: pcr...@pcreso.com [mailto:pcr...@pcreso.com] Sent: 10 June 2011 07:21 To: chris.gr...@ibstv.co.uk Cc: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] upgrade Mapserver 5.4 to 6.0 (gulp!) Hi Chris, I'm a Suse/Ubuntu user, in both cases totally because of the well supported GIS related packages for these distros. So I have completely avoided the issues are facing right now :-) Though I'd imagine it will not be long before 6.0 is available natively for Fedora, given 5.6 is supported. I'm not too familiar with the RH Linux family, but the OpenSuse Geo repository partially supports Centos RH4/5, and I have found the maintainers there to be very helpful. If a RH or Centos build will be compatible with Fedora, it would be worth asking around there. Mapserver is not currently built for these distros, but someone may be prepared to do this for you. http://download.opensuse.org/repositories/Application:/Geo/ Personally, I'd suggest you switch to a distro that does what you want, if that includes well maintained supported, pre-built mapserver ( related) packages, Ubuntu OpenSuse are well worth considering. HTH, Brent Wood --- On Fri, 6/10/11, Smith, Michael D ERDC-CRREL-NH michael.sm...@usace.army.mil wrote: From: Smith, Michael D ERDC-CRREL-NH michael.sm...@usace.army.mil Subject: Re: [mapserver-users] upgrade Mapserver 5.4 to 6.0 (gulp!) To: Chris Green chris.gr...@ibstv.co.uk, 'Stephen Woodbridge' wood...@swoodbridge.com, mapserver-users@lists.osgeo.org Date: Friday, June 10, 2011, 3:31 AM Chris, What Linux OS are you on? There are packages for Ubuntu, Debian, RHEL, etc. See http://mapserver.org/download.html#linux On 6/9/11 11:04 AM, Chris Green chris.gr...@ibstv.co.uk wrote: Hi Steve Thanks for your comments. I have read the documentation and realise that there will be quite a few changes to my mapfile(s). I'm not at all worried about that, it's just a question of patiently working through the changes. However I am very apprehensive of the upgrade itself. Before I installed the FGS package I spent many, many hours trying to compile and install Mapserver myself but eventually had to admit defeat and resort to FGS. Now there is no FGS to fall back on, I'm hoping for some guidance (or maybe just some encouragement!) Chris -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Stephen Woodbridge Sent: 09 June 2011 15:42 To: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] upgrade Mapserver 5.4 to 6.0 (gulp!) On 6/9/2011 8:58 AM, Chris Green wrote: Hi All I have been running Mapserver 5.4 for about 18 months on a Fedora core 7 Unix platform. I installed it via the FGS installer package which made the installation process relatively straightforward. Now I see that Mapserver 6.0 has been released and it includes some features that I really want to take advantage of, particularly the ability to cluster dense features. My problem is that apparently the FGS package has not been updated, so from the Mapserver website it looks like I have start from scratch with a scarily long list of libraries and compilations required to install Mapserver 6.0 from scratch. As something of a Unix novice I don't fancy this very much! I am wondering if there is a simple way to in effect replace my existing Mapserver 5.4 executable with Mapserver 6.0 - could I assume that Mapserver 6.0 only requires the same libraries as 5.4 and just compile the 6.0 executable? Any guidance on the direction to take here would be gratefully received. Hi Chris, Be aware that 5.4 to 6.0 is probably NOT a transparent upgrade from a mapfile point of view. Make sure you read the mapserver migration guide. One of the big changes that we made in 6.0 was to clean up some of the mapfile syntax and remove some deprecated tags. These should not be major changes but it is likely that some (all?) of your mapfiles will need to be tweaked to get them to work. So please plan accordingly. -Steve W ___ 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
[mapserver-users] upgrade Mapserver 5.4 to 6.0 (gulp!)
Hi All I have been running Mapserver 5.4 for about 18 months on a Fedora core 7 Unix platform. I installed it via the FGS installer package which made the installation process relatively straightforward. Now I see that Mapserver 6.0 has been released and it includes some features that I really want to take advantage of, particularly the ability to cluster dense features. My problem is that apparently the FGS package has not been updated, so from the Mapserver website it looks like I have start from scratch with a scarily long list of libraries and compilations required to install Mapserver 6.0 from scratch. As something of a Unix novice I don't fancy this very much! I am wondering if there is a simple way to in effect replace my existing Mapserver 5.4 executable with Mapserver 6.0 - could I assume that Mapserver 6.0 only requires the same libraries as 5.4 and just compile the 6.0 executable? Any guidance on the direction to take here would be gratefully received. Chris ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] upgrade Mapserver 5.4 to 6.0 (gulp!)
Hi Steve Thanks for your comments. I have read the documentation and realise that there will be quite a few changes to my mapfile(s). I'm not at all worried about that, it's just a question of patiently working through the changes. However I am very apprehensive of the upgrade itself. Before I installed the FGS package I spent many, many hours trying to compile and install Mapserver myself but eventually had to admit defeat and resort to FGS. Now there is no FGS to fall back on, I'm hoping for some guidance (or maybe just some encouragement!) Chris -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Stephen Woodbridge Sent: 09 June 2011 15:42 To: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] upgrade Mapserver 5.4 to 6.0 (gulp!) On 6/9/2011 8:58 AM, Chris Green wrote: Hi All I have been running Mapserver 5.4 for about 18 months on a Fedora core 7 Unix platform. I installed it via the FGS installer package which made the installation process relatively straightforward. Now I see that Mapserver 6.0 has been released and it includes some features that I really want to take advantage of, particularly the ability to cluster dense features. My problem is that apparently the FGS package has not been updated, so from the Mapserver website it looks like I have start from scratch with a scarily long list of libraries and compilations required to install Mapserver 6.0 from scratch. As something of a Unix novice I don't fancy this very much! I am wondering if there is a simple way to in effect replace my existing Mapserver 5.4 executable with Mapserver 6.0 - could I assume that Mapserver 6.0 only requires the same libraries as 5.4 and just compile the 6.0 executable? Any guidance on the direction to take here would be gratefully received. Hi Chris, Be aware that 5.4 to 6.0 is probably NOT a transparent upgrade from a mapfile point of view. Make sure you read the mapserver migration guide. One of the big changes that we made in 6.0 was to clean up some of the mapfile syntax and remove some deprecated tags. These should not be major changes but it is likely that some (all?) of your mapfiles will need to be tweaked to get them to work. So please plan accordingly. -Steve W ___ 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
RE: [mapserver-users] upgrade Mapserver 5.4 to 6.0 (gulp!)
Hi Michael I'm using Fedora 7. My main problem is the totally daunting list of libraries and other packages like GD and GDAL which have to be available or pre-compiled before you can even start compiling Mapserver 6.0. But it seems to me that most if not all of the required libraries must already be in place for Mapserver 5.4 to run (which it does), so I was hoping that someone could say don't worry, just do this Chris -Original Message- From: Smith, Michael D ERDC-CRREL-NH [mailto:michael.sm...@usace.army.mil] Sent: 09 June 2011 16:31 To: Chris Green; 'Stephen Woodbridge'; mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] upgrade Mapserver 5.4 to 6.0 (gulp!) Chris, What Linux OS are you on? There are packages for Ubuntu, Debian, RHEL, etc. See http://mapserver.org/download.html#linux On 6/9/11 11:04 AM, Chris Green chris.gr...@ibstv.co.uk wrote: Hi Steve Thanks for your comments. I have read the documentation and realise that there will be quite a few changes to my mapfile(s). I'm not at all worried about that, it's just a question of patiently working through the changes. However I am very apprehensive of the upgrade itself. Before I installed the FGS package I spent many, many hours trying to compile and install Mapserver myself but eventually had to admit defeat and resort to FGS. Now there is no FGS to fall back on, I'm hoping for some guidance (or maybe just some encouragement!) Chris -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Stephen Woodbridge Sent: 09 June 2011 15:42 To: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] upgrade Mapserver 5.4 to 6.0 (gulp!) On 6/9/2011 8:58 AM, Chris Green wrote: Hi All I have been running Mapserver 5.4 for about 18 months on a Fedora core 7 Unix platform. I installed it via the FGS installer package which made the installation process relatively straightforward. Now I see that Mapserver 6.0 has been released and it includes some features that I really want to take advantage of, particularly the ability to cluster dense features. My problem is that apparently the FGS package has not been updated, so from the Mapserver website it looks like I have start from scratch with a scarily long list of libraries and compilations required to install Mapserver 6.0 from scratch. As something of a Unix novice I don't fancy this very much! I am wondering if there is a simple way to in effect replace my existing Mapserver 5.4 executable with Mapserver 6.0 - could I assume that Mapserver 6.0 only requires the same libraries as 5.4 and just compile the 6.0 executable? Any guidance on the direction to take here would be gratefully received. Hi Chris, Be aware that 5.4 to 6.0 is probably NOT a transparent upgrade from a mapfile point of view. Make sure you read the mapserver migration guide. One of the big changes that we made in 6.0 was to clean up some of the mapfile syntax and remove some deprecated tags. These should not be major changes but it is likely that some (all?) of your mapfiles will need to be tweaked to get them to work. So please plan accordingly. -Steve W ___ 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 mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] FW: FGS Linux - PHP question
Dear Mapserver users, I sent the following to the foss-gis forum this morning, but got no response. I'm wondering if any of you Mapserver experts can help me out with this problem? Earlier today I tried to re-install PHP, leaving the other FGS components intact. I did this after unzipping PHP 5.2.17 and using the command: # ./configure --with-apxs=/opt/fgs/www/bin/apxs --with-mysql However I get the error message: sorry I was unable to successfully run APXS. Possible reasons: 1. Perl is not installed; 2. Apache was not compiled with DSO support; 3. 'apxs' is not in your path So I failed to upgrade PHP (for mysql support), and I can't see why. Nor I can find out if re-installing the whole FGS package gives me the option of enabling mysql on the PHP component. As you may realise I am still learning about Linux! Can anyone help? In the end all I need is what I have already (FGS 5.4.0) but with PHP enabled for mysql. Chris From: Chris Green [mailto:chris.gr...@ibstv.co.uk] Sent: 10 January 2011 06:38 To: 'foss-gis-su...@lists.maptools.org' Subject: FGS Linux - PHP question Hi list I installed FGS Linux installer version 5.4.0 beta 4 in June 2010. It has been working fine since then but now I am in the process of upgrading my web site to incorporate a MySQL database and I encountered a PHP problem that I am not sure of the best way to fix. The PHP version that came with FGS is 5.2.5 and by using info.php I can see that it is not configured to support MySQL. As I see it my choices are: 1. Upgrade the existing PHP 5.2.5 to incorporate MySQL support 2. Re-install FGS using the current version, which I see incorporates PHP base 5.2.9 (I assume this is configured to support MySQL???) Maybe there are other options, but being fairly inexperienced in Linux I am looking for the easiest method with least disruption to the existing website. Can anyone offer me any advice? Chris Green ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] WFS Server does not support VERSION 1.1.0
Hi Assefa I am using a Virtual Private Server and my ISP tells me that it uses Linux 5.2.1. The Mapserver version is 5.6.3, which came with the latest FGS version downloaded two days ago. The VPS comes with Apache pre-installed so I have 2 versions of Apache running, one already there and the other installed as part of the FGS package (the FGS version uses port 81). Since asking for help I have continued to try modifications to my map file (which still runs fine under MS4W although with a number of directory changes for Linux) but I still have the same problem - either no WFS results with 1.0.0 or with 'WFS Server does not support VERSION 1.1.0' I don't know much (actually almost nothing) about Linux. I am contemplating re-installing Mapserver as a stand alone (not with FGS) so there is only one version of Apache present. Would you recommend this - or do you have any other suggestions? Chris From: Yewondwossen Assefa [mailto:yass...@dmsolutions.ca] Sent: 08 July 2010 12:40 To: chris.gr...@ibstv.co.uk Cc: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] WFS Server does not support VERSION 1.1.0 Chris, Is your Linux version still a 5.2.1? Note that I have tried your request locally with current MapServer version (svn) and got expected results. regards, On 08/07/2010 3:06 AM, Chris Green wrote: Hi All I have a situation that I cannot understand. For some time I have been developing an application using OpenLayers and Mapserver, working on a Windows platform with Mapserver CGI 5.2.1 that I downloaded as MS4W from MapTools.org. The application involves a number of WFS searches for which I have been using WFS 1.1.0 without any problems. Now I am migrating to a Linux platform in order to get ready for production, using Fedora. I downloaded the FGS Linux installer from MapTools.org and have made the application run under this environment. However there is now a problem with WFS . In response to a post as follows: wfs:GetFeature xmlns:wfs= http://www.opengis.net/wfs http://www.opengis.net/wfs; service=WFS version=1.1.0 maxFeatures=100 xsi:schemaLocation= http://www.opengis.net/wfshttp:/schemas.opengis.net/wfs/1.1.0/wfs.xsd 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://www.w3.org/2001/XMLSchema-instance;wfs:Query typeName=feature:Countries_full srsName=EPSG:4326 xmlns:feature= http://mapserver.gis.umn.edu/mapserver http://mapserver.gis.umn.edu/mapserver;ogc:Filter xmlns:ogc= http://www.opengis.net/ogc http://www.opengis.net/ogc;ogc:PropertyIsEqualTo matchCase=trueogc:PropertyNameREGION/ogc:PropertyNameogc:LiteralEur ope/ogc:Literal/ogc:PropertyIsEqualTo/ogc:Filter/wfs:Query/wfs:GetF eature I get a response of: ServiceExceptionReport xmlns= http://www.opengis.net/ogc http://www.opengis.net/ogc; xmlns:xsi= http://www.w3.org/2001/XMLSchema-instance http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation= http://www.opengis.net/ogchttp:/schemas.opengis.net/wms/1.1.1/OGC-exception .xsd http://www.opengis.net/ogc http://schemas.opengis.net/wms/1.1.1/OGC-exception.xsd; ServiceException msWFSDispatch(): WFS server error. WFS Server does not support VERSION 1.1.0. /ServiceException /ServiceExceptionReport If I modify the WFS protocol to 1.0.0 I don't get the error, but I don't get any results either. This is the case for all of the WFS searches in the application, although they still work fine under MS4W. Can anyone help me see what I am doing wrong? Chris ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Assefa Yewondwossen Software Analyst Email: yass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] WFS Server does not support VERSION 1.1.0
Hi again Assefa A correction from my ISP: now they say that the Linux installation is Fedora Core 7. Could this be the explanation of my problem? Chris From: Yewondwossen Assefa [mailto:yass...@dmsolutions.ca] Sent: 08 July 2010 12:40 To: chris.gr...@ibstv.co.uk Cc: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] WFS Server does not support VERSION 1.1.0 Chris, Is your Linux version still a 5.2.1? Note that I have tried your request locally with current MapServer version (svn) and got expected results. regards, On 08/07/2010 3:06 AM, Chris Green wrote: Hi All I have a situation that I cannot understand. For some time I have been developing an application using OpenLayers and Mapserver, working on a Windows platform with Mapserver CGI 5.2.1 that I downloaded as MS4W from MapTools.org. The application involves a number of WFS searches for which I have been using WFS 1.1.0 without any problems. Now I am migrating to a Linux platform in order to get ready for production, using Fedora. I downloaded the FGS Linux installer from MapTools.org and have made the application run under this environment. However there is now a problem with WFS . In response to a post as follows: wfs:GetFeature xmlns:wfs= http://www.opengis.net/wfs http://www.opengis.net/wfs; service=WFS version=1.1.0 maxFeatures=100 xsi:schemaLocation= http://www.opengis.net/wfshttp:/schemas.opengis.net/wfs/1.1.0/wfs.xsd 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://www.w3.org/2001/XMLSchema-instance;wfs:Query typeName=feature:Countries_full srsName=EPSG:4326 xmlns:feature= http://mapserver.gis.umn.edu/mapserver http://mapserver.gis.umn.edu/mapserver;ogc:Filter xmlns:ogc= http://www.opengis.net/ogc http://www.opengis.net/ogc;ogc:PropertyIsEqualTo matchCase=trueogc:PropertyNameREGION/ogc:PropertyNameogc:LiteralEur ope/ogc:Literal/ogc:PropertyIsEqualTo/ogc:Filter/wfs:Query/wfs:GetF eature I get a response of: ServiceExceptionReport xmlns= http://www.opengis.net/ogc http://www.opengis.net/ogc; xmlns:xsi= http://www.w3.org/2001/XMLSchema-instance http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation= http://www.opengis.net/ogchttp:/schemas.opengis.net/wms/1.1.1/OGC-exception .xsd http://www.opengis.net/ogc http://schemas.opengis.net/wms/1.1.1/OGC-exception.xsd; ServiceException msWFSDispatch(): WFS server error. WFS Server does not support VERSION 1.1.0. /ServiceException /ServiceExceptionReport If I modify the WFS protocol to 1.0.0 I don't get the error, but I don't get any results either. This is the case for all of the WFS searches in the application, although they still work fine under MS4W. Can anyone help me see what I am doing wrong? Chris ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Assefa Yewondwossen Software Analyst Email: yass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] WFS Server does not support VERSION 1.1.0
Daniel You hit the nail on the head...I had blindly followed the example and downloaded Mapserver 5.0.2. I suppose that does not support WFS version 1.1.0, which caused my problem. It should have been simple to re-download Mapserver 5.6.3, but actually I found that all attempts to download using: wget http://dl.maptools.org/dl/fgs/releases/1.0/1.0.0/self-installers/ fgs-mapserver_basic_5.6.3-fgs_9.5-linux-i386.bin failed with a 404 page not found error. Probably caused by my embarrassing lack of Linux knowledge - could I trouble you to guide me one more time to solve how to download the latest file please? Chris -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Daniel Morissette Sent: 08 July 2010 15:49 To: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] WFS Server does not support VERSION 1.1.0 Chris Green wrote: A correction from my ISP: now they say that the Linux installation is Fedora Core 7. Could this be the explanation of my problem? Double-check the mapserv version that you are using through the Web. Even if you installed FGS, maybe you're not using the copy of mapserv you think you are. Use a URL like the following: http://your.server.com/cgi-bin/mapserv?test=1 And then do a View Source... you will see the MapServer version in the HTML source. -- Daniel Morissette http://www.mapgears.com/ ___ 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
RE: [mapserver-users] mouseover with mapserver...?
Hi Steve Thanks for your comment (and also to Till Adams). I would like to use OpenLayers but I have been discouraged by what seems like erratic behaviour. I had it running successfully for a while and then it started hanging on start up with an Apache error log message of: File does not exist: C:/ms4w/apps/ka-map-1.0/htdocs/tools/kaExplorer/images, referer: http://localhost/kamap/ All of the files in the images directory seem to be in place..after a while (and without me changing anything, to my knowledge) it started running again. Then the next time I tried Kamap it was hanging again. Do you have any suggestions about why it could be unstable in this way? Thanks, Chris From: Lime, Steve D (DNR) [mailto:steve.l...@state.mn.us] Sent: 10 February 2010 17:29 To: chris.gr...@ibstv.co.uk; mapserver-users@lists.osgeo.org Subject: RE: [mapserver-users] mouseover with mapserver...? It's kinda dependent on what client environment you're using. OpenLayers, for example, has a hover control that you can use to do this. This site uses that technique to provide tooltips. http://www.dnr.state.mn.us/waters/csg/index.html Basically if you pause the mouse for n seconds you fire a hover event which does a MapServer query. Watch the above site in firebug and you'll see 'em. If the query fails (nothing of interest was found) the no tooltip is displayed. In the example you mention is relevant to image map creation and my guess that's not what your after. What client environment are you using? Steve From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Chris Green Sent: Wednesday, February 10, 2010 11:07 AM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] mouseover with mapserver...? Hi all I am using ms4w and have managed to make a number of maps work really well. However one thing I would really like to implement is a mouseover function which indicates and/or highlights features without requiring a click. There is a link to a good example of this on the Mapserver website: http://maps.dnr.state.mn.us/cgi-bin/mapserv48?map=/usr/local/www/docs_maps/e co/rsg/search/search_example.map http://maps.dnr.state.mn.us/cgi-bin/mapserv48?map=/usr/local/www/docs_maps/ eco/rsg/search/search_example.mapqlayer=countymode=nquerysearchmap=true qlayer=countymode=nquerysearchmap=true It is probably my lack of web/javascript design experience but the fact is that I have totally failed to make any kind of mouseover work with mapserver. Can anyone provide the source code of something that works? Chris ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Place names...?
Hi all Apologies in advance if this turns out to be a stupid question, but I can't find a way to make Map Server v5.0 display place names. I have created a shape file with points for towns and cities, each of which has a label. If I check this layer with Quantum GIS (which I used to create the points) I can display both the points and the labels showing town and city names. However when I define this layer in the mapfile with type 'point' MapServer gives me a display of the points but not the labels. If I define it as type 'annotation' I don't see either points or labels. I feel sure I am missing something obvious but after quite a few hours I am stuck. Can anyone suggest what I am doing wrong? Chris Green ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] MapServer Demo
Hi All I have a problem that I can see has been experienced by others, but the advice given to those others does not fix my problem. I have successfully installed Map Server and Apache onto winXP using ms4W, and downloaded the Demo. I put the workshop-5.0 directory in the Apache.htdocs directory, and I have modified the index.html file and Itasca.map files in what seems to be a logical way. My problem is that when I launch the application I get the error message: msSaveImageGD(): Unable to access file. Unable to open file /C:/ms4w/tmp/ms_tmp/ITASCA12433555452596.png for writing. It seems that this is related to the way that I modified the index.html file, which I did as follows: var snippet = IMAGEPATH '/C:/ms4w/tmp/ms_tmp/'; snippet += IMAGEURL '/ms-tmp/'; I have been tearing my hair out for a few hours trying to see what I have done wrong. Anyone got any suggestions please? Chris Green ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] MapServer Demo
David Thanks for the suggestion, but that doesn't do it - same error message. I have been wondering if the problem has to do with the tmp file not having permission for other (web-based) users to access it, but I tried declaring it as a system environment variable, still no success. Going round in circles now... Chris From: Fawcett, David [mailto:david.fawc...@state.mn.us] Sent: Tuesday, May 26, 2009 7:43 PM To: chris.gr...@ibstv.co.uk; mapserver-users@lists.osgeo.org Subject: RE: [mapserver-users] MapServer Demo Chris, Try snippet += IMAGEURL '/tmp/' David. -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Chris Green Sent: Tuesday, May 26, 2009 11:56 AM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] MapServer Demo Hi All I have a problem that I can see has been experienced by others, but the advice given to those others does not fix my problem. I have successfully installed Map Server and Apache onto winXP using ms4W, and downloaded the Demo. I put the workshop-5.0 directory in the Apache.htdocs directory, and I have modified the index.html file and Itasca.map files in what seems to be a logical way. My problem is that when I launch the application I get the error message: msSaveImageGD(): Unable to access file. Unable to open file /C:/ms4w/tmp/ms_tmp/ITASCA12433555452596.png for writing. It seems that this is related to the way that I modified the index.html file, which I did as follows: var snippet = IMAGEPATH '/C:/ms4w/tmp/ms_tmp/'; snippet += IMAGEURL '/ms-tmp/'; I have been tearing my hair out for a few hours trying to see what I have done wrong. Anyone got any suggestions please? Chris Green ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users