[mapserver-users] php mapscript object destruction
Hi All, What MapScript objects need to be destructed explicitely under PHP? I mean ImageObj has a free() method, MapObj hasn't any. Can I leave it as is? What happens if I leave an object with free() method? Is the order important in case of for example classes, layers, styles etc which are encapsulated one in another? thanx in advance, best regards: Balázs Bámer ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Mapserver Hardware Specifications?
Hi, Is anyone running mapserver in a stable production or development environment on dedicated hardware? If so, I'd be interest to know the server specifications you are using. As part of FOSS4G2009 it is intended to showcase mapserver along with other open source software. Currently the following hardware specs are proposed... 512GB Disk Raid0 4 GB RAM 2x Dual Core CPU Would anyone recommend a higher specification? Keeping in mind this will be used to showcase the potential of mapserver. Regards, Doug White. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] dynamically added shapes and their values
Dan, I considered this solution, as well as (Steve) creating a layer for each classification. maybe you are right, despite I must to generate a different file for each user-session: other garbage in tmp dir... :) possibility of apply a style to a single feature can be a great functionality for further releases... what about the STYLEITEM? http://mapserver.org/mapfile/layer.html?highlight=styleitem http://mapserver.org/mapscript/mapscript.html?highlight=styleitem --- thanks all bye ..pg -- Pietro Giannini Bytewise srl - Area GIS 41°50'38.58N 12°29'13.39E On Mer, Gennaio 21, 2009 22:09, Dan Little wrote: Totally spit balling... What about writing your layer to a temp. file that's KML/GML. The file size is small, it carries the attributes you want, and it's easy to write the file using anything that writes text files (presumable C# can write text files ... but I know Microsoft misses little details from time to time). Then write yourself a little mapfile you can open... maybe following this as a guide... http://mapserver.org/input/vector/gml.html -or- http://mapserver.org/input/vector/kml.html And just change CONNECTION using Mapscript to whatever the location of your newly created KML/GML file happens to be, then proceed with the processing. - Original Message From: Steve Lime steve.l...@dnr.state.mn.us To: Pietro Giannini pgiann...@bytewise.it; mapserver-users@lists.osgeo.org Sent: Wednesday, January 21, 2009 2:43:31 PM Subject: Re: [mapserver-users] dynamically added shapes and their values PG: At this point inline feature can carry no attributes and as a result cannot be classified. So I don't think you're going to be able to make this work. The work around is to use separate layers for what would have been a class and add features to the appropriate layer. Steve On 1/21/2009 at 10:29 AM, in message 55312.89.97.235.106.1232555376.squir...@localhost.localdomain, Pietro Giannini wrote: Hi all, I'm working to a c# asp.net project embedding a mapscript application. My attempt is to add dynamically features to a layer object and classify them in different colors. The features are INLINE features: I don't add the features to the source of the layer. I'm able to create different classes and styles in the layer, set a field as classitem and set an EXPRESSION string to the class. I found the shapeObj.initValues(numOfFields) method, which cannot set the field names, only the number, and also the shapeObj.setValue(indexOfField, valueAsString) for setting the value. Now I need a field name to set a CLASSITEM property of the layer!!! I found no methods to add a named field to the layer. Maybe I follow a wrong way... Someone has an idea? thanks in advance ...pg ___ 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] Is there a way to add a single click zoom button
boesiii, there is no reason why both buttons cannot work together. can you pls post the entire template? bye ..pg -- Pietro Giannini Bytewise srl - Area GIS 41°50'38.58N 12°29'13.39E On Mer, Gennaio 21, 2009 19:47, boesiii wrote: PG, The button is not working because of I have a refresh button with a submit value I think. The refresh button is for updating layers. How can I make is so both buttons work. Code: input type=submit name=submit value=Refresh Mapbr -- View this message in context: http://n2.nabble.com/Is-there-a-way-to-add-a-single-click-zoom-button-tp2158109p2193900.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 mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] Mapserver Hardware Specifications?
We are running an HP/Compaq ProLiant DL380 G3, 2x 3GHz Xeon (runs as 4 procs), 8GB RAM, 150GB RAID 1 (for failover), and we're running Solaris 10. Timothy J Nolte - tno...@ilpcs.com Network Planning Engineer iPCS Wireless, Inc. 4717 Broadmoor Ave, Suite G Kentwood, MI 49512 Office: 616-656-5163 PCS:616-706-2438 Fax:616-554-6484 Web: www.ipcswirelessinc.com -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Doug White Sent: Thursday, January 22, 2009 3:26 AM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] Mapserver Hardware Specifications? Hi, Is anyone running mapserver in a stable production or development environment on dedicated hardware? If so, I'd be interest to know the server specifications you are using. As part of FOSS4G2009 it is intended to showcase mapserver along with other open source software. Currently the following hardware specs are proposed... 512GB Disk Raid0 4 GB RAM 2x Dual Core CPU Would anyone recommend a higher specification? Keeping in mind this will be used to showcase the potential of mapserver. Regards, Doug White. ___ 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] plz help
hi still I am not getting how to connect two points which are already placed in map , by drawing a line. It is mandatory in my project through php mapscript. plz help me soon thank u ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] plz help
If we give more help do you promise to: 1) Have a more descriptive subject. 2) Give more useful details. Do you know which two points you have? Finally, is this for a class assignment? Judging from the plz and thank u, I'm cynically guessing this is not for a professional product. From: Amiya Patra amiyapatra...@gmail.com To: mapserver-users@lists.osgeo.org Sent: Thursday, January 22, 2009 7:53:23 AM Subject: [mapserver-users] plz help hi still I am not getting how to connect two points which are already placed in map , by drawing a line. It is mandatory in my project through php mapscript. plz help me soon thank u ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] plz help
Dear Amiya, Please, give us more details. Members of the list sent you some ideas yesterday so what are the results ? And please, try to answer to the previous messages so to not break the chain of mail. Thank you in advance. Regards, Benoît Andrieu b...@ixsea.com benoit.andr...@gmail.com - Original Message - From: Amiya Patra To: mapserver-users@lists.osgeo.org Sent: Thursday, January 22, 2009 2:53 PM Subject: [mapserver-users] plz help hi still I am not getting how to connect two points which are already placed in map , by drawing a line. It is mandatory in my project through php mapscript. plz help me soon thank u -- ___ 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] plz help
Amiya: There are a couple of ways to do it, here's the pseudo code. This assumes you have the two points in variables $x1, $y1 and $x2, $y2: Option 1 - Build the line using points, lines and shapes $shape = new shapeObj(MS_SHAPE_LINE); $line = new lineObj(); $point = new pointObj($x1, y1); $line-add($point); $point-{x} = $x2; $point-{y} = $y2; $line-add($point); $shape-add($line); Option 2 - Use WKT (the easy way) $shape = new mapscript::shapeObj(MS_SHAPE_LINE); $shape-fromWKT(LINESTRING($x1 $y1,$x2 $y2)); Now you need to draw it. Generally you'd have a LAYER defined to draw the line which would work like so: $layer = $map-getLayerByName('the_line_drawing_layer'); $layer-addFeature($shape); $map-draw(); etc... Steve Amiya Patra amiyapatra...@gmail.com 01/22/09 7:54 AM hi still I am not getting how to connect two points which are already placed in map , by drawing a line. It is mandatory in my project through php mapscript. plz help me soon thank u ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] plz help
hi Extremely sorryNow I got . sorry for shouting without trying .Actually I got deadline. in my project...thats why.. Anyway thank u all 4 response Amiya ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] php mapscript object destruction
No object needs to be destructed explicitly via the free() method. PHP has a garbage collector and it its job to delete php objects. Regards, Alan Balázs Bámer wrote: Hi All, What MapScript objects need to be destructed explicitely under PHP? I mean ImageObj has a free() method, MapObj hasn't any. Can I leave it as is? What happens if I leave an object with free() method? Is the order important in case of for example classes, layers, styles etc which are encapsulated one in another? thanx in advance, best regards: Balázs Bámer ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Alan Boudreault Mapgears http://www.mapgears.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Openlayers Mapserver
Hi, I would like to know how to add severals mapserver layers as my base layer for openlayers. Supose I have a mapfile with a layers us_states (with the states shapes) other for the roads (us_roads) , and other for the railsways (us_railsways). So, what I want to do is to have all this layers when openlayers loads. I'd been unable to do so... I was trying something like this but is not working: layer = new OpenLayers.Layer.MapServer(United States, http://localhost/cgi-bin/mapserv?us_states.map;, {:layers: 'us_railsways,us_states, us_roads'}, {gutter:15}); map.addLayer -- Rafael Chacon, El hombre es la medida de todas las cosas. Protagoras ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Openlayers Mapserver
Hi Rafael, retry this without the colon before layers, maybe it's only a javascript error. Rafael chacón schrieb: Hi, I would like to know how to add severals mapserver layers as my base layer for openlayers. Supose I have a mapfile with a layers us_states (with the states shapes) other for the roads (us_roads) , and other for the railsways (us_railsways). So, what I want to do is to have all this layers when openlayers loads. I'd been unable to do so... I was trying something like this but is not working: layer = new OpenLayers.Layer.MapServer(United States, http://localhost/cgi-bin/mapserv?us_states.map;, {:layers: 'us_railsways,us_states, us_roads'}, {gutter:15}); map.addLayer -- Rafael Chacon, El hombre es la medida de todas las cosas. Protagoras ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Daniel Degasperi Software Developer daniel.degasp...@r3-gis.com --- R3 GIS Srl Via Johann Kravogl 2 I-39010 Merano - Sinigo (BZ) Tel. +39 0473 494949 Fax. +39 0473 069902 Web http://www.r3-gis.com - ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Looking for instances of Mapserver implementation?
Hi I'm looking for some information of using UMN Mapserver in different applications. i mean sth like architecture or anything else. i could not find anything in its website, as other softwares usually have a 'gallery' section in their website for some instances of implementation. any information would be apperciated Thanks in advance ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Mapscript won't load after PHP update
So I've updated our PHP installation from 5.1.6 to 5.2.8 (we need PHP version 5.2 or later for some other features we want to implement on the same server that Mapserver is running on). I did so using yum update. This is where problems started and Mapscript didn't load anymore. I've then recompiled Mapserver 5.2.1 against version 5.2.8 of PHP which goes through without a glitch. This did not fix the issue. PHP still cannot (or refuses to) load Mapscript and throws the following error: PHP Warning: dl() [a href='function.dl'function.dl/a]: MapScript: Unable to initialize module Module compiled with module API=20050922, debug=0, thread-safety=0 PHPcompiled with module API=20060613, debug=0, thread-safety=0 These options need to match in .. I made double sure that I compiled against the correct (new) version of PHP so that can't be the issue here. I have not found any information as to what else I can check or as to what else I could be doing wrong so I need to ask here. Thanks in advance for any insight. -- Dominik Schmid Dipl. Umweltnaturwissenschafter ETH ilu AG Zentralstrasse 2a CH-8610 Uster Tel: +41 44 / 944 55 56(Direktwahl) Tel: +41 44 / 944 55 55(allgemein) Fax: +41 44 / 944 55 66 mailto:dominik.sch...@ilu.ch http://www.ilu.ch ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Mapscript won't load after PHP update
Dominik Schmid wrote: PHP Warning: dl() [a href='function.dl'function.dl/a]: MapScript: Unable to initialize module Module compiled with module API=20050922, debug=0, thread-safety=0 PHPcompiled with module API=20060613, debug=0, thread-safety=0 These options need to match in .. I made double sure that I compiled against the correct (new) version of PHP so that can't be the issue here. I have not found any information as to what else I can check or as to what else I could be doing wrong so I need to ask here. There is not much else to check. This error really tells you that the php_mapscript.so you are loading was compiled for the wrong version of PHP. Sounds like you need to make triple sure that you have installed and are compiling against the correct set of php-devel files: yum install the php-devel package for the right version of php and make sure you uninstall any previous version. If that doesn't solve your problem then perhaps try sharing your MapServer configure options with us on the list... Daniel -- Daniel Morissette http://www.mapgears.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Mapserver Hardware Specifications?
MapServer tends to be IO bound so this should work nicely. Steve On 1/22/2009 at 2:25 AM, in message 49782d97.2050...@gmail.com, Doug White doug.royce.wh...@gmail.com wrote: Hi, Is anyone running mapserver in a stable production or development environment on dedicated hardware? If so, I'd be interest to know the server specifications you are using. As part of FOSS4G2009 it is intended to showcase mapserver along with other open source software. Currently the following hardware specs are proposed... 512GB Disk Raid0 4 GB RAM 2x Dual Core CPU Would anyone recommend a higher specification? Keeping in mind this will be used to showcase the potential of mapserver. Regards, Doug White. ___ 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] Openlayers Mapserver
, are used with WMS layers. MapServer layers must be separated by spaces : layer = new OpenLayers.Layer.MapServer( United States, http://localhost/cgi-bin/mapserv http://localhost/cgi-bin/mapserv?us_states.map, { map: /path/to/your/map/us_states.map, layers: 'us_railsways us_states us_roads' }, {gutter:15} ); Also, don't forget the path of your map parameter ( see above ). Alexandre Rafael chacón wrote: Hi, I would like to know how to add severals mapserver layers as my base layer for openlayers. Supose I have a mapfile with a layers us_states (with the states shapes) other for the roads (us_roads) , and other for the railsways (us_railsways). So, what I want to do is to have all this layers when openlayers loads. I'd been unable to do so... I was trying something like this but is not working: layer = new OpenLayers.Layer.MapServer(United States, http://localhost/cgi-bin/mapserv?us_states.map;, {:layers: 'us_railsways,us_states, us_roads'}, {gutter:15}); map.addLayer -- Rafael Chacon, El hombre es la medida de todas las cosas. Protagoras ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Alexandre Dubé Mapgears www.mapgears.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Looking for instances of Mapserver implementation?
Hi Saka, Have a look at http://atlas.planyukon.ca, our Yukon Planning Atlas. It is an implementation of Mapserver, with a customized Chameleon front end. It provides access to environmental, cultural and resource information in support of regional land use planning and project impact assessment. It is supported by our not-for-profit agency, with funding assistance from GeoConnections. For more details on how we've set it up, have a look at http://trac.planyukon.ca. Regards, Jeff Hamm Senior Planner Yukon Land Use Planning Council Saka Royban wrote: Hi I'm looking for some information of using UMN Mapserver in different applications. i mean sth like architecture or anything else. i could not find anything in its website, as other softwares usually have a 'gallery' section in their website for some instances of implementation. any information would be apperciated Thanks in advance ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] dynamically added shapes and their values
2009/1/22 Steve Lime steve.l...@dnr.state.mn.us Could consider for 5.4 I guess. The layer iteminfo would need to be populated somehow for inline layers then. Tamas, something you want to take on? I'll have a shot at it. Tamas ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Looking for instances of Mapserver implementation?
http://www.geomoose.org/moose/index.php?option=com_weblinkscatid=19Itemid=27 bobb Saka Royban srph...@yahoo.com 01/22/09 10:36 AM Hi I'm looking for some information of using UMN Mapserver in different applications. i mean sth like architecture or anything else. i could not find anything in its website, as other softwares usually have a 'gallery' section in their website for some instances of implementation. any information would be apperciated Thanks in advance ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] dbox make_dlegend_xml_cgi.py XML error
Can anyone assist with the below error? I am getting it when trying to generate my application legend with dBox. The same make_dlegend_xml_cgi.py script works on my development and test servers but fails in production. My OS is Window Server 2003 with IIS 6. The XML page cannot be displayed Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later. End tag 'font' does not match the start tag 'body'. Error processing resource 'http://production/cgi-bin/make_dlegend_xml_cg.../font /font /font /script /object /blockquote /pre--^ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users