Re: [mapserver-users] How to Mapserver 6.4 on Windows?
Am 04.09.2014 um 14:04 schrieb mapserver-users-requ...@lists.osgeo.org: Message: 1 Date: Wed, 3 Sep 2014 23:10:25 +0200 (CEST) From: Siki Zoltans...@agt.bme.hu To: Thomas RAFFINtraf...@sirap.fr Cc:mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] How to Mapserver 6.4 on Windows? Message-ID: Pine.LNX.4.64.1409032310160.10658@bme-geod Content-Type: text/plain; charset=iso-8859-2; Format=flowed yes On Wed, 3 Sep 2014, Thomas RAFFIN wrote: Hi, Does this version contain PHP Mapscript? Thanks Thomas Le 03/09/2014 15:46, Siki Zoltan a ?crit : Dear Francesco, you can download binary package fromhttp://trac.osgeo.org/osgeo4w/ 6.4.1 is the latest stabil. You can download apache laso from there. Zoltan On Wed, 3 Sep 2014, Francesco Martinelli wrote: Hi, I would like to install Mapserver 6.4.x on a Windows OS. What should I do? ... I immagine recompile, but can someone post some more details on specific steps to follow. Thank you. ___ 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 -- Thomas RAFFIN Chef de Projet Internet traf...@sirap.fr mailto:traf...@sirap.fr Siraphttp://sirap.fr Tel : 04 75 72 84 10 Fax : 04 75 70 07 98 Rue Paul Louis H?roult - BP 253 26106 Romans cedex Sorry, but there is no PHP-Mapscript for 64-bit-osgeo4w and a very old Version for 32 bit (MapServer version 5.6.6, Revision: 10204 $ $Date: 2010-06-02). By the way, the newest version of the ms4w-package is more then two years old, this great product is dead: The latest release of MS4W is version 3.0.6 (May 26, 2012). Download now! and that's no joke... Compile your own windows-version (I don't know how) or try linux... Ludwig ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Upgrading Apache and PHP that came with MS4W
-- Message: 2 Date: Mon, 24 Feb 2014 23:50:04 + From: EVANS, JAMES R GS-13 USAF ACC 84 RADES/SCZE james.evan...@us.af.mil To:mapserver-users@lists.osgeo.org mapserver-users@lists.osgeo.org Subject: [mapserver-users] Upgrading Apache and PHP that came with MS4W Message-ID: 20ea793b1bc710448656bdc9bd25c4a104c40...@52zhtx-d07-04d.area52.afnoapps.usaf.mil Content-Type: text/plain; charset=us-ascii Hi, I'm running the dev version of MS4W with Mapcache. Our security scans are pointing to Apache and PHP that came with MS4W as vulnerabilities. Our system admin tried updating the Apache, but this caused problems with mod_mapcache.dll. Has anyone had any luck upgrading the Apache and PHP that came with MS4W without breaking things? Also, is there a good document describing how to deploy the latest Mapserver/Mapcache on a widows server? James -- Hi ms4w-User, glad to hear we are not alone with that problem, we also use ms4w and have no possibilities to compile mapserver-windows-binaries for actual versions of apache and php. The last (dev!) version on the ms4w-Download-site ist mapserver 6.0.3 and almost 2 years old, the included apache and php-versions as well. The versions for osgeo4w are even older. We want to upgrade the apache-php-mapscript-parts of our webserver *independent* and need therefore php-mapscript-modules for different (and more actual...) apache and php-versions, 32 and 64 bit. It seems, ms4w development and support is down, who can help? How can he be monetarily supported? Ludwig ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Status with raster-layer-classes doesn't work
Hi List, I'm using MS4W 3.0.6 (MapServer version 6.0.3) with PHP-mapscript, but this problem occured on older versions too. I have an tile-indexed raster-layer for topografic maps (for the german users: it's the TK 25 from NRW). The tiffs are colour-indexed, so I use several classes like this: [SNIP] CLASS NAME Beschriftung EXPRESSION ([pixel] = 13) STYLE COLOR 0 0 0 END END [/SNIP] I want to give the user with our web client the possibility, to hide some classes, so I tried the following mapscript: [SNIP] for($cc=0; $cc $map_file_layer_object-numclasses; $cc++){ $map_file_layer_object-getClass($cc)-status = $some_boolean_variable; } [/SNIP] where some_boolean_variable sets the class-status to on (=visible) or off (=hidden). Unfortunatly, this only works for feature-layers, but has no effect on raster-layers. Hint: Setting STATUS OFF in the mapfile doen't work with raster-layers, too. The class is allways drawn. Is this a bug or am I doing something wrong? Ludwig P.S.: As workaround i got the same effect with [SNIP] if(!$some_boolean_variable){ for($sc=0; $sc $map_file_class-numstyles; $sc++){ $map_file_class-getStyle($sc)-opacity = 0; } } [/SNIP] but this seems too complicated... ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] RE: Measure tool?
Hi Bob, we use clientside javascript-functions. They both need an array of points (digi_points) with real-world-coordiantes (properties pointX and pointY) as input-parameter. This array is filled by clicks on the map, the click-coordiantes (pixel-distance from the click-point to the upper left corner of the map-grafic) ar calculated to real-wolrd coordinates with the upper left corner-coordinates and the cellsize of the map, these two parameters are returned to the browser together with the grafic by php-mapscript. function get_digi_points_length(digi_points) { var calculated_length = 0; for ( var i = 0; i (digi_points.length - 1); i++) { var from_point = digi_points[i]; var to_point = digi_points[i + 1]; var delta_x = to_point.pointX - from_point.pointX; var delta_y = to_point.pointY - from_point.pointY; var delta_length = Math.sqrt(Math.pow(delta_x, 2) + Math.pow(delta_y, 2)); calculated_length += delta_length; } return calculated_length; } //precheck the digi_points for closed ring: digi_points[0] == digi_points[digi_points.length - 1] function get_digi_points_area(digi_points) { var calculated_area = 0; for ( var i = 0; i (digi_points.length - 1); i++) { var from_point = digi_points[i]; var to_point = digi_points[i + 1]; var delta_area = from_point.pointX * to_point.pointY - to_point.pointX * from_point.pointY; calculated_area += delta_area; } calculated_area *= 0.5; // if digitized counter-clockwise the result is negative! calculated_area = Math.abs(calculated_area); return calculated_area; } Ludwig ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Problems with PostGIS connection pooling
Hello all, I use mapserver 5.6.1 and php_mapscript (ms4w_3.0_beta10) on Apache and PHP 5.3.2 (CGI). The spatial-data (OpenStreetMap) is stored in PostGIS. The map-creation ist called by a php-script, which himself connects to a postgres database for administrative purposes. In the map-File the PostGIS-Layers are defined with a different connection then the calling php-script, that seems to be the problem. Although the Layer in the map-file is defined with CONNECTION host=localhost dbname=osm user=max password=mustermann port=5432 the logfile shows, that mapserver uses the connection-parameters from the calling php-script instead of the mapfile-parameters: ---snip--- [Wed Apr 07 15:53:48 2010].609000 msPostGISLayerOpen called: way from (select way,osm_id ,landuse, name from planet_osm_polygon where landuse is not null) as foo using unique osm_id using srid=4326 [Wed Apr 07 15:53:48 2010].609000 msPostGISLayerOpen: No connection in pool, creating a fresh one. [Wed Apr 07 15:53:48 2010].687000 msConnPoolRegister(landuse_layer1,user='kniprath' password='***' dbname='wver_ims' host='127.0.0.1' port='5432',02BDFD18) [Wed Apr 07 15:53:48 2010].687000 msPostGISLayerFreeItemInfo called. [Wed Apr 07 15:53:48 2010].687000 msPostGISLayerGetItems called. [Wed Apr 07 15:53:48 2010].687000 msPostGISParseData called. [Wed Apr 07 15:53:48 2010].687000 msPostGISParseData: unique_column=osm_id, srid=4326, geom_column_name=way, table_name=(select way,osm_id ,landuse, name from planet_osm_polygon where landuse is not null) as foo [Wed Apr 07 15:53:48 2010].687000 msPostGISLayerGetItems executing SQL: select * from (select way,osm_id ,landuse, name from planet_osm_polygon where landuse is not null) as foo where false limit 0 [Wed Apr 07 15:53:48 2010].703000 msPostGISLayerGetItems(): Query error. Error (FEHLER: Relation »planet_osm_polygon« existiert nicht LINE 1: ...ect * from (select way,osm_id ,landuse, name from planet_osm... ^ ) executing SQL: select * from (select way,osm_id ,landuse, name from planet_osm_polygon where landuse is not null) as foo where false limit 0 ---snap--- These wrong connection-parameters cause the error, because in the queried database wver_ims the osm-tables don't exist. Question: Why doesn't mapserver connect to postgres with the mapfile-connection-parameters? Thanks in advance! Ludwig ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Re: choosing region of interest using referencemap
We implemented such a feature with Javascript and PHP-Mapscript. Serverside (Mapscript): - Get extent (reference_map-extent) and - size of reference-map-image (reference_map-width, reference_map-height, pixel), - Calculate the cellsize (meter per pixel), - return these values to the client-browser (with Ajax f. e.). (Hint: if you know these values and they don't change, you can also hard-code them in javascript) Clientside Javascript: - register mouse-down and mouse-up-events for the reference-map, - get mouse-down and mouse-up cursor-positions of these events relativ to the upper-left corner of the reference-map (pixel), - calculate the real-world-coordiantes of the events with cursor-position, cellsize and the real-world-coordiantes of the upper-left reference-map-corner = new extent, - call the new map-image (and the new reference-map-image) for this extent. Ludwig Message: 1 Date: Sat, 27 Mar 2010 13:15:23 +0200 From: ahmet temiz ahmettemi...@gmail.com Subject: Re: [mapserver-users] choosing region of interest using referencemap To: mapserver-users@lists.osgeo.org Message-ID: 37ee0091003270415y77dd5281p7b08b875cc5a8...@mail.gmail.com Content-Type: text/plain; charset=ISO-8859-1 Let me put it another way: I just want to set map extent from reference map using rectangle clip regards 2010/3/26 ahmet temiz ahmettemi...@gmail.com: Let me put it another way: I just want to set map extent from reference map using rectangle clip regards 2010/3/26 Cristiano Sumariva sumar...@gmail.com: What do you mean by region of interest? Want a highlight when a click happen over image ? 2010/3/26 ahmet temiz ahmettemi...@gmail.com hello I was wondering how I could choose region of interest using referencemap ? Could you give me a hint ? regards ___ 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] Re: wms output problem
Just an idea: Perhaps a missing IMAGETYPE png in the mapfile? Regards Ludwig Hi! i have a problem with the output image of my wms, i define PNG but return JPEG. Source mapfile OUTPUTFORMAT NAME png DRIVER AGG/PNG MIMETYPE 'image/png' IMAGEMODE RGB EXTENSION png FORMATOPTION TRANSPARENT=OFF FORMATOPTION INTERLACE=ON END source wms mapfile OUTPUTFORMAT NAME png DRIVER AGG/PNG MIMETYPE 'image/png' IMAGEMODE RGB EXTENSION png FORMATOPTION TRANSPARENT=OFF FORMATOPTION INTERLACE=ON END can you help me please? RG ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] RE: Rendering overlapping data
I dont't think, Mapserver has the out-of-the-box possibility to render the overlapping parts of polygons in a special way. Perhaps you could try to create a separate layer (f. e. in Postgis with a special geo-query), that just shows these overlapping parts. But also then I think its difficult to query and to render the case, that three or more polygons do overlap. Ludwig Message: 2 Date: Mon, 21 Dec 2009 17:22:44 +0100 From: Peter Hopfgartner peter.hopfgart...@r3-gis.com Subject: [mapserver-users] Rendering overlapping data To: mapserver-users@lists.osgeo.org Cc: d'Orio Pietro pietro.do...@r3-gis.com Message-ID: 4b2fa0d4.7020...@r3-gis.com Content-Type: text/plain; charset=ISO-8859-1; format=flowed Dear list members We would like to visualize a layer with data, where polygons with different classes may overlap. Using transparency, new colors are introduced, e.g. if I overlap a blue and a red polygon I get an violet one. Is there a way to show overlapping polygons in stripes with cycling colors, or as a checker board? How do people handle this? Regards, Peter -- Dott. Peter Hopfgartner R3 GIS Srl - GmbH Via Johann Kravogl-Str. 2 I-39012 Meran/Merano (BZ) Email: peter.hopfgart...@r3-gis.com Tel. : +39 0473 494949 Fax : +39 0473 069902 www : http://www.r3-gis.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Re: How to set Labels dynamically
Hi Helen, this sample-script should work: ---schnipp-- ?php //1. Map-Object and Image $blank_map_object = ms_newMapObj('your path to the sample mapfile below'); $blank_map_object-preparequery(); $blank_map_image = $blank_map_object-prepareImage(); //2. LAYER $draw_layer = ms_newLayerObj($blank_map_object); $draw_layer-set('type', MS_LAYER_POINT); $draw_layer-set('status', MS_ON); //3. CLASS, STYLE and LABEL $new_class = ms_newClassObj($draw_layer); $new_style = ms_newStyleObj($new_class); $label_obj = $new_class-label; $label_obj-set('size', 25); $label_obj-set('type', MS_TRUETYPE); //Path to arial.ttf must be defined in test_fontset.txt $label_obj-set('font', 'arial'); $label_obj-set('angle', 30); //0x007E is the ~ sign $label_obj-set('wrap', 0x007E); $label_obj-color-setRGB(0,255,0); $label_obj-backgroundcolor-setRGB(0,0,255); $label_obj-backgroundshadowcolor-setRGB(200,200,200); $label_obj-set('backgroundshadowsizex', 15); $label_obj-set('backgroundshadowsizey', 15); //...and so on //4. Shape with label $draw_shape = ms_shapeObjFromWkt('POINT(2502500 5602500)'); $draw_shape-set('text', ' ~ Hello World!~ Mapserver is cool... ~'); $draw_layer-addFeature($draw_shape); $draw_layer-draw($blank_map_image); //5. Shape to Image $blank_map_object-drawLabelCache($blank_map_image); $blank_map_object-labelcache-free(); //6. ready $image_url=$blank_map_image-saveWebImage(); echo img src='$image_url'/; ? ---schnapp-- With mini-mapfile: ---schnipp-- MAP name test fontset your path to the fontset units meters extent 250 560 2505000 5605000 size 800 600 imagecolor 255 255 255 WEB imagepath your path to tmp-directory imageurl your url to tmp-directory END END ---schnapp-- Regards Ludwig Helen Eskina schrieb: Hi, My $daLayer is defined dynamically. How should I define Label-Section in this case? $daLayer-set(type, MS_LAYER_POINT); $daLayer-set(status, MS_ON); $class = ms_newClassObj($daLayer); $style = ms_newStyleObj($class); $style-color-setRGB(255,0,0); $style-set(symbolname, circle); $style-set(size, 10); Thank you, Helen -Original Message- From: Ludwig Kniprath [mailto:lud...@kni-online.de] Sent: Thursday, December 03, 2009 4:57 PM To: Helen Eskina; mapserver-users@lists.osgeo.org Subject: Re: How to set Labels dynamically Oops, you're right, drawLabelCache is a method of the map-object, but all the same it works for me! Perhaps a missing LABEL-Section in the mapfile-definition of your $daLayer? Regards Ludwig Helen Eskina schrieb: Hi Ludwig, Layer object doesn't have DrawLabelCache method. I've tried this line and got an error. I'm using Mapserver installed with fgs 5.4.2. I've tried $map- drawLabelCache($image); But it doesn't make any difference. Helen -Original Message- From: Ludwig Kniprath [mailto:lud...@kni-online.de] Sent: Thursday, December 03, 2009 12:13 PM To: mapserver-users@lists.osgeo.org Cc: hesk...@ubitech.com Subject: RE: How to set Labels dynamically Hi, I think there's only one line missing after $daLayer-draw($image): $daLayer-drawLabelCache($image); Regards Ludwig Message: 6 Date: Thu, 3 Dec 2009 11:13:10 -0500 From: Helen Eskina hesk...@ubitech.com Subject: [mapserver-users] How to set Labels dynamically? To: mapserver-users@lists.osgeo.org Message-ID: 5cde4e2f906f4ce9b22afedb42cd0...@skysource Content-Type: text/plain; charset=windows-1252 Hello, I couldn't find documentation how to set the text labels dynamically using MapScript. My application should show points with labels on the map. Points and labels are obtained dynamically from the database or some text file. I add the points to the layer and draw layer as following: $my_point = ms_newpointObj(); $my_point-setXY(-75.895, 45.9227); $my_point-project($projInObj,$projOutObj); $line = ms_newLineObj(); $line-add($my_point); $shape = ms_newShapeObj(MS_SHAPE_POINT); $shape-add($line); $shape-set(text, 'new point'); $daLayer-addFeature($shape); $image=$map-draw(); $daLayer-draw($image); $image_url=$image-saveWebImage(); Points are displayed on the map, but no text. What am I doing wrong? I will appreciate any help, Helen ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] RE: How to set Labels dynamically
Hi, I think there's only one line missing after $daLayer-draw($image): $daLayer-drawLabelCache($image); Regards Ludwig Message: 6 Date: Thu, 3 Dec 2009 11:13:10 -0500 From: Helen Eskina hesk...@ubitech.com Subject: [mapserver-users] How to set Labels dynamically? To: mapserver-users@lists.osgeo.org Message-ID: 5cde4e2f906f4ce9b22afedb42cd0...@skysource Content-Type: text/plain; charset=windows-1252 Hello, I couldn’t find documentation how to set the text labels dynamically using MapScript. My application should show points with labels on the map. Points and labels are obtained dynamically from the database or some text file. I add the points to the layer and draw layer as following: $my_point = ms_newpointObj(); $my_point-setXY(-75.895, 45.9227); $my_point-project($projInObj,$projOutObj); $line = ms_newLineObj(); $line-add($my_point); $shape = ms_newShapeObj(MS_SHAPE_POINT); $shape-add($line); $shape-set(text, 'new point'); $daLayer-addFeature($shape); $image=$map-draw(); $daLayer-draw($image); $image_url=$image-saveWebImage(); Points are displayed on the map, but no text. What am I doing wrong? I will appreciate any help, Helen ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Re: How to set Labels dynamically
Oops, you're right, drawLabelCache is a method of the map-object, but all the same it works for me! Perhaps a missing LABEL-Section in the mapfile-definition of your $daLayer? Regards Ludwig Helen Eskina schrieb: Hi Ludwig, Layer object doesn't have DrawLabelCache method. I've tried this line and got an error. I'm using Mapserver installed with fgs 5.4.2. I've tried $map- drawLabelCache($image); But it doesn't make any difference. Helen -Original Message- From: Ludwig Kniprath [mailto:lud...@kni-online.de] Sent: Thursday, December 03, 2009 12:13 PM To: mapserver-users@lists.osgeo.org Cc: hesk...@ubitech.com Subject: RE: How to set Labels dynamically Hi, I think there's only one line missing after $daLayer-draw($image): $daLayer-drawLabelCache($image); Regards Ludwig Message: 6 Date: Thu, 3 Dec 2009 11:13:10 -0500 From: Helen Eskina hesk...@ubitech.com Subject: [mapserver-users] How to set Labels dynamically? To: mapserver-users@lists.osgeo.org Message-ID: 5cde4e2f906f4ce9b22afedb42cd0...@skysource Content-Type: text/plain; charset=windows-1252 Hello, I couldn't find documentation how to set the text labels dynamically using MapScript. My application should show points with labels on the map. Points and labels are obtained dynamically from the database or some text file. I add the points to the layer and draw layer as following: $my_point = ms_newpointObj(); $my_point-setXY(-75.895, 45.9227); $my_point-project($projInObj,$projOutObj); $line = ms_newLineObj(); $line-add($my_point); $shape = ms_newShapeObj(MS_SHAPE_POINT); $shape-add($line); $shape-set(text, 'new point'); $daLayer-addFeature($shape); $image=$map-draw(); $daLayer-draw($image); $image_url=$image-saveWebImage(); Points are displayed on the map, but no text. What am I doing wrong? I will appreciate any help, Helen No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.426 / Virus Database: 270.14.88/2538 - Release Date: 12/03/09 07:32:00 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Re: mapserver-users Digest, Vol 22, Issue 71
Hello, I used your slightly changed PHP and the mapfile below, it worked perfectly for me. Maybe your problems were caused by the extent defined in your mapfile? Regards Ludwig ?php $map = ms_newMapObj('e:\website\WVER_IMS\mapfiles\test.map'); $daLayer = ms_newLayerObj($map); $daLayer-set(type, MS_LAYER_POINT); $daLayer-set(status, MS_ON); $class = ms_newClassObj($daLayer); $style = ms_newStyleObj($class); $style-color-setRGB(255,0,0); $style-set(symbolname, circle); $style-set(size, 10); $my_point = ms_newpointObj(); $my_point-setXY(60,60); $image=$map-draw(); $my_point-draw( $map, $daLayer, $image, 0, Temp Point ); $image_url=$image-saveWebImage(); echo img src='$image_url'/; ? map name test units dd extent 0 0 100 100 size 640 480 imagecolor 255 255 255 WEB IMAGEPATH your_path IMAGEURL your_url END SYMBOL NAME circle FILLED true TYPE vector POINTS 0 0 0 1 1 1 1 0 0 0 END END end From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Helen Eskina Sent: Wednesday, November 25, 2009 5:39 PM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] Can not draw single point Hello, I try to draw single point on the map. My point is defined by lat/long coordinates. The problem is that the point is always in the same place on the map regardless of the lat/long defined. Here is my code: $map = ms_newMapObj($map_path.mymap.map); $daLayer = ms_newLayerObj($map); $daLayer-set(type, MS_LAYER_POINT); $daLayer-set(status, MS_ON); $class = ms_newClassObj($daLayer); $style = ms_newStyleObj($class); $style-color-setRGB(255,0,0); $style-set(symbolname, circle); $style-set(size, 10); $my_point = ms_newpointObj(); $my_point-setXY(42.19,-75.46); $image=$map-draw(); $my_point-draw( $map, $ daLayer, $image, 0, Temp Point ); $image_url=$image-saveWebImage(); What is wrong with it? I will appreciate any help. Thank you, Helen ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] Can not draw single point
Hello, I used your slightly changed PHP and the mapfile below, it worked perfectly for me. Maybe your problems were caused by the extent defined in your mapfile? Regards Ludwig ?php $map = ms_newMapObj('e:\website\WVER_IMS\mapfiles\test.map'); $daLayer = ms_newLayerObj($map); $daLayer-set(type, MS_LAYER_POINT); $daLayer-set(status, MS_ON); $class = ms_newClassObj($daLayer); $style = ms_newStyleObj($class); $style-color-setRGB(255,0,0); $style-set(symbolname, circle); $style-set(size, 10); $my_point = ms_newpointObj(); $my_point-setXY(60,60); $image=$map-draw(); $my_point-draw( $map, $daLayer, $image, 0, Temp Point ); $image_url=$image-saveWebImage(); echo img src='$image_url'/; ? map name test units dd extent 0 0 100 100 size 640 480 imagecolor 255 255 255 WEB IMAGEPATH your_path IMAGEURL your_url END SYMBOL NAME circle FILLED true TYPE vector POINTS 0 0 0 1 1 1 1 0 0 0 END END end From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Helen Eskina Sent: Wednesday, November 25, 2009 5:39 PM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] Can not draw single point Hello, I try to draw single point on the map. My point is defined by lat/long coordinates. The problem is that the point is always in the same place on the map regardless of the lat/long defined. Here is my code: $map = ms_newMapObj($map_path.mymap.map); $daLayer = ms_newLayerObj($map); $daLayer-set(type, MS_LAYER_POINT); $daLayer-set(status, MS_ON); $class = ms_newClassObj($daLayer); $style = ms_newStyleObj($class); $style-color-setRGB(255,0,0); $style-set(symbolname, circle); $style-set(size, 10); $my_point = ms_newpointObj(); $my_point-setXY(42.19,-75.46); $image=$map-draw(); $my_point-draw( $map, $ daLayer, $image, 0, Temp Point ); $image_url=$image-saveWebImage(); What is wrong with it? I will appreciate any help. Thank you, Helen ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] RE: LABELS
Hi, you get a centered label which does not move around when panning with LABEL: POSITION cc and LAYER: PROCESSING LABEL_NO_CLIP=ON, as for example: ---schnipp-- LAYER NAME Country CONNECTIONTYPE postgis CONNECTION ... DATA ... PROCESSING LABEL_NO_CLIP=ON STATUS on TYPE POLYGON LABELCACHE on LABELITEM name LABELMAXSCALEDENOM 10 PROJECTION init=epsg:31466 END CLASS STYLE OUTLINECOLOR 255 0 0 END LABEL TYPE truetype FONT arial #wrap SIZE 10 OUTLINECOLOR 255 255 255 COLOR 255 0 0 POSITION cc PARTIALS true END END END ---schnapp-- Regards Ludwig Message: 2 Date: Mon, 23 Nov 2009 13:51:42 -0600 From: Jose Antonio Arce joseantonioa...@gmail.com Subject: [mapserver-users] LABELS To: mapserver-users@lists.osgeo.org Message-ID: 4b0ae7ce.1060...@gmail.com Content-Type: text/plain; charset=iso-8859-1 Hi people, I hope you are doing well. How can I center a label in every country of the map. Thanks, JOSE ARCE from Costa Rica ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] PHP mapscript $shape-buffer() takes a long time
We had the same problem. In deed the buffer-algorithm is very expensive, especially with large polygons and a large buffer-radius. If you use Postgis, you can simplify the Polygon with ST_Simplify or ST_SimplifyPreserveTopology in dependency from scale and buffer-radius, this will make the buffer-process much faster without significant loss of quality. You can do this on runtime on your original data with dynamic PostGIS-queries. If you don't use PostGis, you have to create simplified layers. Pseudo-PHP-PostGIS-SQL: SELECT ... ST_SetSRID(ST_BUFFER(ST_SIMPLIFY($geometery_field,$simplify_tolerance),$buffer_radius, $number_of_segments),$srid)::geometry ...FROM... And don't use the buffered polygon for geo-queries, there are faster ways in PostGIS and Mapserver. Regards Ludwig Kniprath I'm trying to buffer a shape returned from a point query on a polygon layer of parcels. When I try to use: $bufferedShape = $shape-buffer(200); I get back a fatal error: Maximum execution time of 30 seconds exceeded. I know that this is a php error message and that I could increase the allowable execution time. If I use a buffer distance of 175 I get results. Should it take such a long time to but a buffer around this parcel? It is a large parcel with one corner being a long curve like a quarter of a circle and another section on one side being a half circle. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] entities one upon the other
Hello, perhaps some other solutions for your problem: - use a special class for the small entities, that has to be defined as the last class in the Layer-Definition and so will be drawn upon the other classes - for database-layers: use a order-by-clause to get the result ordered by their sice (desc), so the large entities will be drawn first - for shape-layers: reorder the Shapefile by the size of the entities Regards Ludwig Hello, I have a polygon layer with entities, one located upon the other. The result that I have is: The entity located upon, hides the entity underneath. Is it possible to configure mapfile in such a way that where the entities are located ones upon the others, the colour becomes evidenced and different to the case in which the entities aren't located ones upon the others? Thank in advance Leonardo ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users