Re: [mapserver-users] CGI (FastCGI) mode versus Mapscript?
I can say about subj running on wintel systems (IIS). I've successfully setup mapserv cgi on win2003 iis 6 in fastcgi mode using extension from iis.net. Visually it has nearly 2-3x performance effect. Response speed increases because of mapserv processes keep their instances (more than one in iis web garden powered app pool) for future use. Winthout fastcgi I've observe cpu overloading. Performance effect may be bigger with burden. I have a great experience of developing wep apps using c# mapserver wrapper - this is great opportunity to use c# power, linq to objects, lambda expressions, asp.net script services/methods, json serializers, to extend mapserver classes with new methods (using C# extension methods) - and this is REALLY helpful! But in spite of wrapper uses swig technology (native c++ code calls) - image generation is slightly slower vs mapserv.exe (but some times more correct with peculiar image extents ... never mind). Also mapscript c# allow you to use gdal c# and NTS.net. Saka Royban wrote: Hi all. i couldn't get good answers from web seach. i read more and more about CGI,FastCGI and dynamic pages like ASP,JSP, and i don't know why mapserver shouldbe used in CGI or FastCGI mode. So, what is the difference of using mapserver in CGI mode or in dynamic pages via mapscript really, regarding performance and speed? ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- View this message in context: http://n2.nabble.com/CGI-%28FastCGI%29-mode-versus-Mapscript--tp2297934p2320103.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
AW: [mapserver-users] Mapserver layer selects
Altough this is more PostgreSQL/PostGIS related and should go to there list but I tried it and... strange, I can not reproduce your problem. This is what I did: create table swip3 ( id int, zname varchar(20), pid int, geom geometry, rdate timestamp ); insert into swip3 values ( 28, 'Zone 2', 607, geomfromewkb( decode( '010120BB107ADFF8DA335161406551D845D17541C0', 'hex')), '2009-02-12 13:30:00'::timestamp ); create table probe ( int id, int logger_id ); insert into probe values ( 607, 1 ); create table logger ( int id, int client_id ); insert into logger values ( 1, 120 ); SELECT * from swip3 WHERE (pid in (select probe.id from probe where logger_id in (select id from logger where client_id=120)) and rdate='2009-02-12 13:30:00') and (geom setSRID( 'BOX3D(138.5356633 -34.9225467,138.5397151 -34.9184949)'::BOX3D,4283) ); id | zname | pid |geom |rdate ++-+ +- 28 | Zone 2 | 607 | 010120BB107ADFF8DA335161406551D845D17541C0 | 2009-02-12 13:30:00 (1 Zeile) So I believe this has really nothing to do with MS. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] WMS layer in mapserver
Hi All... I have added a WMS layer in mapguide open source successfully.. Now i want to add WMS layer in mapserver...My ms4w version is 2.2.6.. Is it supports WMS? From where can i get WMS CAPABILITIES Document? Anybody please send me WMS mapfile..i m newer in mapserver..So plz help me.. Regards Nisha P ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] WMS layer in mapserver
Nisha P wrote: Hi All... I have added a WMS layer in mapguide open source successfully.. Now i want to add WMS layer in mapserver...My ms4w version is 2.2.6.. Is it supports WMS? From where can i get WMS CAPABILITIES Document? Anybody please send me WMS mapfile..i m newer in mapserver..So plz help me.. Hi. Here's how to add a WMS layer in MapServer: http://www.mapserver.org/ogc/wms_client.html And here's how to serve your own MapServer layers through WMS: http://www.mapserver.org/ogc/wms_server.html -jeff -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] loadWeb(): Unknown identifier. Parsing error near (:):(line 1) on fedora9
kmanoj-pg7 kmanoj-pg7 wrote: hello users, i am newbie to mapserver i am trying to get the itasca demo map by running in my fedora 9... i have installed mapserver 5.0.3-3 version i am really couldn't understand by looking at the documentation file given for the installation of itasca demo. especially instructions given to edit the index.html. but i have made the following edits in the index.html !-- EDIT THE FORM ACTION -- form name=demo method=GET action=/cgi-bin/mapserv onSubmit=submit_form() //change configure() as submit_form() - kapil input type=hidden name=layer value=lakespy2 input type=hidden name=layer value=dlgstln2 input type=hidden name=zoomsize value=2 !-- EDIT THESE HIDDEN VARIABLES -- input type=hidden name=map value=/var/www/html/Mapserver_Demo/itasca.map input type=hidden name=program value=/cgi-bin/mapserv input type=hidden name=root value=/Mapserver_Demo input type=hidden name=map_web_imagepath value=/var/www/html/Mapserver_Demo/tmp/ input type=hidden name=map_web_imageurl value=/tmp/ after editing completed i call the link http://localhost/Mapserver_Demo/ then i initialized the basic application its thrown the following error loadWeb(): Unknown identifier. Parsing error near (/var/www/html/Mapserver_Demo/tmp/):(line 1) i searched the mapserver forum by somehow to figure out this problem. i saw similar postings with the same error. but unfortunately i haven't found any answer for the question. someone please help me out from this error help/tips will be appreciated.. There were changes in MapServer 5.0 affecting the way to pass CGI variables. If you do a search of this list's archives you will see that this question has been answered before, here is a response: http://n2.nabble.com/msLoadMap()-Unable-to-access-file-td1971168.html#a17286109 -jeff -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] gmap-ms46 demo map not rendering properly
kmanoj-pg7 kmanoj-pg7 wrote: hello users... I am a newbie to mapserver. i am trying to get the gamp demo to run in my machine fedora 9. i have installed mapserver 5.0.3-3 and php-mapserver 5.0.3-3 extension for php/mapscripting. Moreover i installed all the libraries and packges whatever mentioned in the installation documentation perfectly. i have added the AddTypes in the httpd.cong. Perhaps i have made the edits in the php.ini file. now when i call the http://localhost/gmap/gmap75.phtml i stunned to see everything is projecting except the map is not rendering. at the beginning i thought it might be a problem of the java mode is enabled then i tried to disabled that but i failed it was also not working means the button was not working Then i looked into the httpd error log file ... i got this following error [Wed Feb 11 15:06:53 2009] [error] [client 127.0.0.1] PHP Notice: Undefined variable: HTTP_POST_VARS in /var/www/html/gmap-ms46/ htdocs/gmap75.inc.php on line 40, referer: [Wed Feb 11 15:06:54 2009] [error] [client 127.0.0.1] PHP Notice: Undefined variable: HTTP_GET_VARS in /var/www/html/gmap-ms46/htdocs/gmap75.inc.php on line 42, referer: [Wed Feb 11 15:06:54 2009] [error] [client 127.0.0.1] PHP Notice: Use of undefined constant MS_GIF - assumed 'MS_GIF' in /var/www/html/gmap-ms46/htdocs/gmap75.inc.php on line 53, referer:// [Wed Feb 11 15:06:54 2009] [error] [client 127.0.0.1] PHP Notice: Use of undefined constant MS_GIF - assumed 'MS_GIF' in /var/www/html/gmap-ms46/htdocs/gmap75.inc.php on line 54, referer: [Wed Feb 11 15:06:57 2009] [error] [client 127.0.0.1] PHP Notice: Undefined index: MAP_NAME in /var/www/html/gmap-ms46/htdocs/gmap75.phtml on line 589, referer:// [Wed Feb 11 15:07:16 2009] [error] [client 127.0.0.1] File does not exist: /var/www/html/gmap-ms46/htdocs/netscape The GMap demo is very old and requires you to change your php.ini settings for error reporting to not show notices: error_reporting = E_ALL ~E_NOTICE -jeff -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Selective Background Transparency with Labels
If I correctly understand what you're trying to do, then no, this is not possible with mapserver, as this would require recovering the pixels that have been overdrawn by the line. regards, thomas On Fri, Feb 13, 2009 at 15:14, Bill Thoen bth...@gisnet.com wrote: Is there a way to set a LABEL BACKGROUNDCOLOR to render transparent just pixels of a particular color instead of changing all pixels to the specified color? My situation is regarding contour line labels. I want the label to follow the contour line's center, but I would like just the parts of the contour line behind the labels to be knocked out, leaving the background otherwise untouched. In this case the color of the layer just below the contour lines varies across the map (it's a shaded relief layer), so setting BACKGOUNDCOLOR to a specific value doesn't give me the effect I want. Any solutions? - Bill Thoen ___ 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] WMS layer in mapserver
Hi Nisha, Here is a sample of a .map file that consumes a WMS service. In this case, it consumes a WMS service containing orthoimagery. The wms_name element contains the names of the layers within the service that you want to display... LAYER GROUP Imagery NAME naip2007 TYPE raster STATUS OFF CONNECTIONTYPE WMS CONNECTION http://your-server-name/wms/mapserv.exe?map=c:/wms/orthos.map http://your-server-name/wms/mapserv.exe?map=c:/wms/orthos.map METADATA wms_server_version 1.1.1 wms_format image/png wms_title NAIP wms_abstract NAIP 2007 imagery wms_srs EPSG:26919 wms_onlineresource MaineOrthos-NAIP wms_name naip2007,naip10moverview,naip100moverview END END From: Nisha P [mailto:nisha...@gmail.com] Sent: Friday, February 13, 2009 6:14 AM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] WMS layer in mapserver Hi All... I have added a WMS layer in mapguide open source successfully.. Now i want to add WMS layer in mapserver...My ms4w version is 2.2.6.. Is it supports WMS? From where can i get WMS CAPABILITIES Document? Anybody please send me WMS mapfile..i m newer in mapserver..So plz help me.. Regards Nisha P ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Selective Background Transparency with Labels
On Fri, Feb 13, 2009 at 16:16, Bob Basques bob.basq...@ci.stpaul.mn.us wrote: Bill, I understand (I think what you're after. The only way I can figure out how to do this would be with three images stacked on top of each other. You would generate the background first, then build the contour lines separately, lastly, the labels, which would be drawn with the contours again but the contours would be drawn over the labels with the same color as the background (transparent color). Stacking these all together I think will get you the desired effect. You would need something like GeoMoose or openlayers to view the stack though. bobb thomas bonfort thomas.bonf...@gmail.com 02/13/09 8:37 AM If I correctly understand what you're trying to do, then no, this is not possible with mapserver, as this would require recovering the pixels that have been overdrawn by the line. regards, thomas On Fri, Feb 13, 2009 at 15:14, Bill Thoen bth...@gisnet.com wrote: Is there a way to set a LABEL BACKGROUNDCOLOR to render transparent just pixels of a particular color instead of changing all pixels to the specified color? My situation is regarding contour line labels. I want the label to follow the contour line's center, but I would like just the parts of the contour line behind the labels to be knocked out, leaving the background otherwise untouched. In this case the color of the layer just below the contour lines varies across the map (it's a shaded relief layer), so setting BACKGOUNDCOLOR to a specific value doesn't give me the effect I want. Any solutions? - Bill Thoen ___ 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
Re: [mapserver-users] Selective Background Transparency with Labels
Bill, Upon reflection, I guess you could build the background and contours as a single image, so you would only really need to build two images. bobb thomas bonfort thomas.bonf...@gmail.com 02/13/09 9:19 AM On Fri, Feb 13, 2009 at 16:16, Bob Basques bob.basq...@ci.stpaul.mn.us wrote: Bill, I understand (I think what you're after. The only way I can figure out how to do this would be with three images stacked on top of each other. You would generate the background first, then build the contour lines separately, lastly, the labels, which would be drawn with the contours again but the contours would be drawn over the labels with the same color as the background (transparent color). Stacking these all together I think will get you the desired effect. You would need something like GeoMoose or openlayers to view the stack though. bobb thomas bonfort thomas.bonf...@gmail.com 02/13/09 8:37 AM If I correctly understand what you're trying to do, then no, this is not possible with mapserver, as this would require recovering the pixels that have been overdrawn by the line. regards, thomas On Fri, Feb 13, 2009 at 15:14, Bill Thoen bth...@gisnet.com wrote: Is there a way to set a LABEL BACKGROUNDCOLOR to render transparent just pixels of a particular color instead of changing all pixels to the specified color? My situation is regarding contour line labels. I want the label to follow the contour line's center, but I would like just the parts of the contour line behind the labels to be knocked out, leaving the background otherwise untouched. In this case the color of the layer just below the contour lines varies across the map (it's a shaded relief layer), so setting BACKGOUNDCOLOR to a specific value doesn't give me the effect I want. Any solutions? - Bill Thoen ___ 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 mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] How to open a MPEG file from mapserver
I will have a shapefile with an attribute that points to the location of a MPEG file. Is there any way to open that file once it is selected by the user. -- View this message in context: http://n2.nabble.com/How-to-open-a-MPEG-file-from-mapserver-tp2322350p2322350.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Scalebar (and C# mapscript) issue
Hello I am having strange issue with scalebar. I have scalebar displayed on map (embed) and scale units are set to miles. It has size of 200x10 pixels. It shows up fine on the map. Then at run time (using C# map script), I just change the units to feet or meters and the bar size shrinks (to almost 10 pixels length), which appears strange to me. Why would the scalebar length changes by changing units. Is there any other setting I need to set to maintain the same scalebar size? This works fine (or not noticeable) for maps which have extents at city level. I am testing on map which displays Ontario province (Canada). Also, you need to have projection elements defined at both map and layer level. In my case, the projection is same (WGS 1984). Thanks Murty ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] newbie: Error in first atttempt to use postgis with mapserver?
Hello, I have same problem as Saka. I was not able to get mapfile and positgis working together. I am getting empty page when I am trying to render map file containing SQL query to postgis. Saka it will be great if you can share your experience personally. Thanks everyone. Vikram Saka Royban wrote: Hi everyone. i've used workshop material of FOSS4G2007 (PostGIS workshop)to learn postgis along with its data. but there is a problem i got this error in first attempt to retrieve data from postgis: msDrawMap(): Image handling error. Failed to draw layer named 'bc_municipality'. prepare_database(): Query error. Error declaring cursor: ERROR: column oid does not exist LINE 1: ...inary(force_collection(force_2d(the_geom)),'NDR'),OID::text ... ^ With query string: DECLARE mycursor BINARY CURSOR FOR SELECT asbinary(force_collection(force_2d(the_geom)),'NDR'),OID::text from bc_municipality WHERE the_geom setSRID('BOX3D(458426.1 260651.497368421,1943216.4 1373313.90263158)'::BOX3D, find_srid('','bc_municipality ','the_geom') ) msPOSTGISLayerRetrievePGVersion(): Query error. Error executing POSTGIS statement (msPOSTGISLayerRetrievePGVersion():select substring(version() from 12 for (position('on' in version()) - 13)) i don't know what causes the problem although it sounds easy. THX -Inline Attachment Follows- ___ postgis-users mailing list postgis-us...@postgis.refractions.net http://postgis.refractions.net/mailman/listinfo/postgis-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- View this message in context: http://n2.nabble.com/newbie%3A-Error-in-first-atttempt-to-use-postgis-with-mapserver--tp2161688p2323496.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] MapServer conferences on mapserver.org
Hi folks, While zapping around the internet, I stumbled over this site: http://old-mapserver.gis.umn.edu/mum/index2003.html It's the proceedings of the first MapServer conference at the University of Minnesota, on the beautiful campus of St. Paul, June 6-7 2003. I remember that conference with much pleasure , and I guess more people do, as this was the first time MapServer developers and users met face to face, including MapServer's mother and father (isn't that a weird idea, parents meeting for the first time long after their child was born?). And Frank Warmerdam wasn't even there! Wouldn't it be a nice idea to put all MapServer conferences somewhere on the MapServer.org site? Much of it has only historical value of course, but there have been some very interesting talks and workshops in all those years. And who said history isn't important? Jan ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: AW: [mapserver-users] Mapserver layer selects
I agree that my problem is more PostGIS related than Mapserver but it did arise from a Mapserver session and this list is usually very helpful. In addition, the constraint that seems to be in question is the extent constraint added by Mapserver. Swip2 and swip3 are views: benparts=# \d swip2 View public.swip2 Column |Type | Modifiers --+-+--- rdate| timestamp without time zone | state| numeric | pid | integer | location | text| geom | text| View definition: SELECT max(reading.rdate) AS rdate, sum(reading.rval) AS state, probe.id AS pid, max(probe.location) AS location, max(probe.geom::text) AS geom FROM probe, sensor, switch, reading WHERE probe.id = sensor.probe_id AND sensor.id = reading.sensor_id AND probe.switch_id = switch.id AND sensor.sensor_type::text = 'C'::text GROUP BY probe.id, reading.rdate ORDER BY max(reading.rdate) DESC; benparts=# \d swip3 View public.swip3 Column |Type | Modifiers +-+--- id | integer | zname | text| pid| integer | geom | geometry| rdate | timestamp without time zone | View definition: SELECT DISTINCT zone.id, zone.name AS zname, probe.id AS pid, probe.geom, reading.rdate FROM reading, sensor, zone, probe, switch WHERE reading.sensor_id = sensor.id AND sensor.zone = zone.id AND zone.probe_id = probe.id AND probe.switch_id = switch.id AND sensor.sensor_type::text = 'C'::text AND reading.rval = 1::numeric ORDER BY zone.id, zone.name, probe.id, probe.geom, reading.rdate; They are used to display irrigation probe and zone status in Mapserver layers. The queries (should) return the same probe, switch and sensors - and without the extent constraint (as in query 3), they do. Cheers and thanks, Stephen On Friday 13 February 2009 19:27:55 Eichner, Andreas - SID-NLKM wrote: Altough this is more PostgreSQL/PostGIS related and should go to there list but I tried it and... strange, I can not reproduce your problem. This is what I did: create table swip3 ( id int, zname varchar(20), pid int, geom geometry, rdate timestamp ); insert into swip3 values ( 28, 'Zone 2', 607, geomfromewkb( decode( '010120BB107ADFF8DA335161406551D845D17541C0', 'hex')), '2009-02-12 13:30:00'::timestamp ); create table probe ( int id, int logger_id ); insert into probe values ( 607, 1 ); create table logger ( int id, int client_id ); insert into logger values ( 1, 120 ); SELECT * from swip3 WHERE (pid in (select probe.id from probe where logger_id in (select id from logger where client_id=120)) and rdate='2009-02-12 13:30:00') and (geom setSRID( 'BOX3D(138.5356633 -34.9225467,138.5397151 -34.9184949)'::BOX3D,4283) ); id | zname | pid |geom |rdate ++-+ +- 28 | Zone 2 | 607 | 010120BB107ADFF8DA335161406551D845D17541C0 | 2009-02-12 13:30:00 (1 Zeile) So I believe this has really nothing to do with MS. -- = Stephen Davies Consulting P/L Voice: 08-8177 1595 Adelaide, South Australia.Fax : 08-8177 0133 Computing Network solutions.Mobile:040 304 0583 VoIP:sip:1132...@sip1.bbpglobal.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] MapServer conferences on mapserver.org
Hi Jef, I got an Internal Server Error when I tried to access that page this morning. Even so, the page of the first conference (http://old-mapserver.gis.umn.edu/mum/index2003.html) is on the old U. of Minnesota server, that hosted MapServer for so long a period (and very grateful we are to them for it). I don't think it will remain there for ever. If I remember well, the second conference in Ottawa isn't on the Wiki either. Isn't it possible to copy de proceedings of those two parental conferences (in more than one sense of the word :-) ) to mapserver.org? Jan Jeff McKenna wrote: Jan Hartmann wrote: Wouldn't it be a nice idea to put all MapServer conferences somewhere on the MapServer.org site? Jan, There is a wiki page for Conferences (http://trac.osgeo.org/mapserver/wiki/Conferences) please feel free to edit it accordingly. That page is linked from this mapserver.org page: http://www.mapserver.org/community/index.html -jeff ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] MapServer conferences on mapserver.org
Jan Hartmann wrote: Hi Jef, I got an Internal Server Error when I tried to access that page this morning. Even so, the page of the first conference (http://old-mapserver.gis.umn.edu/mum/index2003.html) is on the old U. of Minnesota server, that hosted MapServer for so long a period (and very grateful we are to them for it). I don't think it will remain there for ever. If I remember well, the second conference in Ottawa isn't on the Wiki either. Isn't it possible to copy de proceedings of those two parental conferences (in more than one sense of the word :-) ) to mapserver.org? Hi Jan, I have hit that Trac error before (sometimes Trac reports database locked, or you get an Internal Server Error)...but give it another try (works for me now): http://trac.osgeo.org/mapserver/wiki/Conferences -jeff -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users