[mapserver-users] Comparing cgi and fcgi for serving aerial images
I made some tests by letting JMeter run a few thousand WMS GetMap requests with varying BBOX and WIDTH and HEIGHT parameter. I tested three alternatives: MS4W 2.2.8 and Mapserver 5.2.1 MS4W 3.0 beta 7 and Mapserver 5.6.0 as cgi MS4W 3.0 beta 7 and Mapserver 5.6.0 a fcgi Server is Windows 2003 server with 8 cores and fast disks. I configured JMeter to use 20 threads I feel I was able to get fcgi running by following the instructiuons of MS4W README_INSTALL document. I believe it is convinced by a) calls addressed to /fcgi-bin/mapserv.exe work and b) after receiving an image from WMS service the process remains on the server for some time. However, all these three alternatives are giving me about the same speed that is 5 images per second or 500 KB/sec with jpeg output. Bandwidth is not the limiting factor because with 24-bit png output I get a throughput of 4400 KB/sec. It looks like I am having some base load in my system that takes about 150 milliseconds per each successful WMS request and using fcgi does not help in my case. Can anybody suggest why my server is so much slower than the one used in Mapserver/Geoserver shootout http://www.slideshare.net/gatewaygeomatics.com/wms-performance-shootout and why I do not get any advantage from using Fast-CGI? Could it be because my tileindex shapefile is rather large with more than 11000 polygons? Images themselves are processed in a standard Mapserver way and they are uncompressed, tiled geotiffs with external uncompressed overviews. Some evidence about tileindex handling eating time is that I can get double speed with 10 images per second from a single ecw file but this test is not very comparable because my ecw file is black and white and not 3-channel as my geotiff layer. -Jukka Rahkonen- ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Query Error in getFeatureRequest on Oracle DB
Hello, I have a layer that gets its data from an Oracle database. The layer can be visualized without any problems. As soon as I send a getFeatureRequest, the following error message appears msOracleSpatialLayerGetItems (): Query error. Can not retrieve column list In the UMN log file are 2 SQLs. The one with the spatial SQL query works with the Oracle Developer and I get a result. Why doesn't get my UMN (version 5.2) any data? Thanks for your support! Regards Stefan Schantz # Ausschnitt Layerdefinition## LAYER NAME aero_nukspez_cs137 STATUS ON DEBUG ON TYPE POINT PROJECTION init=epsg:25832 END METADATA ... END DUMP TRUE CONNECTIONTYPE oraclespatial CONNECTION ***/***@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=***)(PORT= 1521)))(CONNECT_DATA=(SID=***))) PROCESSING CLOSE_CONNECTION=DEFER DATA GEOM from (SELECT geom, P_PROBE.PROBEENTNAHME_BEGINN, P_PROBE.PROBEENTNAHME_ENDE, S_MESSGROESSE.BEZEICHNUNG, to_char(P_MESSWERT.MESSWERT, '0.9') AS WERT, S_MESS_EINHEIT1.BEZEICHNUNG, P_MESSWERT.MESSFEHLER, P_PROBE.MITTELUNGSDAUER, S_NETZ_BETREIBER.BEZEICHNUNG, dwd_mess_utm.mst_id AS ID, P_ENTNAHMEORT.KOORD_X_UTM, P_ENTNAHMEORT.KOORD_Y_UTM, ((R_VORGANG.OID)-(255297803876564992)), R_VORGANG.AUSFUEHRUNGSDATUM, P_MESSUNG.STATUS_1, P_MESSUNG.STATUS_2, P_MESSUNG.STATUS_4, S_STATUS_BMU.BEZEICHNUNG, P_PROBE.IST_TESTDATENSATZ FROM dwd_mess_utm,IMIS.P_ENTNAHMEORT,IMIS.S_MESS_EINHEIT S_MESS_EINHEIT1,IMIS.S_MESSGROESSE,IMIS.S_STATUS_BMU,IMIS.P_MESSUNG,IMIS.S_NETZ_BETREIBER,IMIS.P_MESSWERT,IGS2.R_VORGANG_MESSUNG_P,IMIS.P_PROBE,IMIS.S_MESS_STELLE S_MESS_STELLE14,IGS2.R_VORGANG WHERE (R_VORGANG_MESSUNG_P.S_OID = R_VORGANG.OID(+) AND R_VORGANG_MESSUNG_P.T_PROBE_ID(+) = P_MESSUNG.PROBE_ID AND R_VORGANG_MESSUNG_P.T_MESSUNGS_ID(+) = P_MESSUNG.MESSUNGS_ID AND p_probe.mst_id = dwd_mess_utm.mst_id AND P_ENTNAHMEORT.PROBE_ID = P_PROBE.PROBE_ID AND P_MESSUNG.STATUS_5 = S_STATUS_BMU.STATUS_5 AND S_MESS_STELLE14.NETZBETREIBER_ID = S_NETZ_BETREIBER.NETZBETREIBER_ID AND P_MESSUNG.PROBE_ID = P_PROBE.PROBE_ID AND P_MESSWERT.MESSGROESSE_ID = S_MESSGROESSE.MESSGROESSE_ID AND P_ENTNAHMEORT.PROBE_ID = P_PROBE.PROBE_ID AND P_PROBE.MST_ID = S_MESS_STELLE14.MST_ID AND P_MESSWERT.PROBE_ID = P_MESSUNG.PROBE_ID AND P_MESSWERT.MESSUNGS_ID = P_MESSUNG.MESSUNGS_ID AND P_MESSWERT.MEH_ID = S_MESS_EINHEIT1.MEH_ID AND (P_PROBE.UMW_ID IN ('L31')) AND (P_MESSWERT.MESSGROESSE_ID IN (373)) AND (P_ENTNAHMEORT.STAAT_ID IN (0)) AND (P_PROBE.DATENBASIS_ID IN (1)) AND (P_PROBE.NETZBETREIBER_ID IN ('W')) AND P_PROBE.PROBEENTNAHME_BEGINN = TO_DATE('16.12.2009 06:00','DD.MM. HH24:MI'))) USING UNIQUE ID SRID 25832 TEMPLATE ../templates/getFeature_ODL.html ... ###end layer definition### # MS LOGFILE## [Fri Dec 18 08:36:05 2009].932804 msOracleSpatialLayerClose. Cleaning Oracle Cache. [Fri Dec 18 08:36:05 2009].932814 msOracleSpatialLayerClose. Release the Oracle Pool. [Fri Dec 18 08:36:05 2009].932816 msConnPoolRelease(aero_nukspez_cs137,i/***@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=***)(PORT= 1521)))(CONNECT_DATA=(SID=***))),82368a8) [Fri Dec 18 08:36:05 2009].932981 msConnPoolClose(***/***@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=***)(PORT= 1521)))(CONNECT_DATA=(SID=***))),82368a8) [Fri Dec 18 08:36:06 2009].470320 msOracleSpatialLayerOpen called with: GEOM from (SELECT geom, P_PROBE.PROBEENTNAHME_BEGINN, P_PROBE.PROBEENTNAHME_ENDE, S_MESSGROESSE.BEZEICHNUNG, to_char(P_MESSWERT.MESSWERT, '0.9') AS WERT, S_MESS_EINHEIT1.BEZEICHNUNG, P_MESSWERT.MESSFEHLER, P_PROBE.MITTELUNGSDAUER, S_NETZ_BETREIBER.BEZEICHNUNG, dwd_mess_utm.mst_id AS ID, P_ENTNAHMEORT.KOORD_X_UTM, P_ENTNAHMEORT.KOORD_Y_UTM, ((R_VORGANG.OID)-(255297803876564992)), R_VORGANG.AUSFUEHRUNGSDATUM, P_MESSUNG.STATUS_1, P_MESSUNG.STATUS_2, P_MESSUNG.STATUS_4, S_STATUS_BMU.BEZEICHNUNG, P_PROBE.IST_TESTDATENSATZ FROM dwd_mess_utm,IMIS.P_ENTNAHMEORT,IMIS.S_MESS_EINHEIT S_MESS_EINHEIT1,IMIS.S_MESSGROESSE,IMIS.S_STATUS_BMU,IMIS.P_MESSUNG,IMIS.S_NETZ_BETREIBER,IMIS.P_MESSWERT,IGS2.R_VORGANG_MESSUNG_P,IMIS.P_PROBE,IMIS.S_MESS_STELLE S_MESS_STELLE14,IGS2.R_VORGANG WHERE (R_VORGANG_MESSUNG_P.S_OID = R_VORGANG.OID(+) AND R_VORGANG_MESSUNG_P.T_PROBE_ID(+) = P_MESSUNG.PROBE_ID AND R_VORGANG_MESSUNG_P.T_MESSUNGS_ID(+) = P_MESSUNG.MESSUNGS_ID AND p_probe.mst_id = dwd_mess_utm.mst_id AND
Re: [mapserver-users] Comparing cgi and fcgi for serving aerial images
It's hard to give a definite answer without seeing your actual setup, mapfile, data, etc. However, as a general rule, you will gain from using fastcgi only once you get to the point where the processing time for each request (to read data and render the map) becomes close to or smaller than the time it takes to launch CGI processes. So if you get around 5 hits/sec with 8 cores, we can presume that each request takes over 1 second of processing time (and/or disk I/O) which is several times larger than the time to launch a CGI process, and you need to do some work on your data and mapfile before you can benefit from fastcgi. Of course I could be completely wrong, but I'd suggest you start by verifying where the time is spent by enabling MS_ERRORFILE/DEBUG at both the mapfile and layer level, look at the logs to identify where the time is spent and optimize your mapfile/data accordingly. HTH Daniel Rahkonen Jukka wrote: I made some tests by letting JMeter run a few thousand WMS GetMap requests with varying BBOX and WIDTH and HEIGHT parameter. I tested three alternatives: MS4W 2.2.8 and Mapserver 5.2.1 MS4W 3.0 beta 7 and Mapserver 5.6.0 as cgi MS4W 3.0 beta 7 and Mapserver 5.6.0 a fcgi Server is Windows 2003 server with 8 cores and fast disks. I configured JMeter to use 20 threads I feel I was able to get fcgi running by following the instructiuons of MS4W README_INSTALL document. I believe it is convinced by a) calls addressed to /fcgi-bin/mapserv.exe work and b) after receiving an image from WMS service the process remains on the server for some time. However, all these three alternatives are giving me about the same speed that is 5 images per second or 500 KB/sec with jpeg output. Bandwidth is not the limiting factor because with 24-bit png output I get a throughput of 4400 KB/sec. It looks like I am having some base load in my system that takes about 150 milliseconds per each successful WMS request and using fcgi does not help in my case. Can anybody suggest why my server is so much slower than the one used in Mapserver/Geoserver shootout http://www.slideshare.net/gatewaygeomatics.com/wms-performance-shootout and why I do not get any advantage from using Fast-CGI? Could it be because my tileindex shapefile is rather large with more than 11000 polygons? Images themselves are processed in a standard Mapserver way and they are uncompressed, tiled geotiffs with external uncompressed overviews. Some evidence about tileindex handling eating time is that I can get double speed with 10 images per second from a single ecw file but this test is not very comparable because my ecw file is black and white and not 3-channel as my geotiff layer. -Jukka Rahkonen- ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- 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] attribute bindings for SYMBOL and FONT?
The short story: Is it possible to bind a CLASS's SYMBOL object to an attribute (i.e store the symbol name as a attribute of a feature)? And the LABEL objects FONT name? The Long Story: --- I've been working with the yet-to-be-released Feature Editor in Geomoose v2. It allows the user to digitize features (points, lines, and polygons) and assign attributes, then stores them in PostGIS. I want to allow simple styling and don't want to have a map file the size of War and Peace, so I thought I would use the attribute/item/column binding abilities of Mapserver's CLASS and LABEL objects. To that end, one of the columns the feature table will be style name (or maybe feature class), which I'll use to join to a style table (with COLOR, WIDTH, etc columns) to get the feature rendered in a simple style. After a quick review of Mapserver's doc, most of the most important objects can be bound to attributes, with two exceptions, SYMBOL 'name' and FONT 'name': CLASS STYLE ANGLE [angle] COLOR [color] #R G B OUTLINECOLOR [olcolor] #R G B SIZE [size] WIDTH [width] # v5.2 SYMBOL 'name' # in SYMBOLSET END #STYLE TEXT ([label]) LABEL ANGLE [label_angle] COLOR [label_color] OUTLINECOLOR [label_olcolor] PRIORITY [label_priority] SIZE [label_size] FONT 'name' # in FONTSET END #LABEL END # CLASS How difficult would it be to have attribute binding for SYMBOL and FONT? I suppose I could use mapscript, but I'd rather not. Thanks! Brent Fraser ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] attribute bindings for SYMBOL and FONT?
http://research.dmsolutions.ca/?p=118 This would indicate the answer is yes. - Original Message From: Brent Fraser bfra...@geoanalytic.com To: mapserver-users@lists.osgeo.org mapserver-users@lists.osgeo.org Sent: Fri, December 18, 2009 11:05:28 AM Subject: [mapserver-users] attribute bindings for SYMBOL and FONT? The short story: Is it possible to bind a CLASS's SYMBOL object to an attribute (i.e store the symbol name as a attribute of a feature)? And the LABEL objects FONT name? The Long Story: --- I've been working with the yet-to-be-released Feature Editor in Geomoose v2. It allows the user to digitize features (points, lines, and polygons) and assign attributes, then stores them in PostGIS. I want to allow simple styling and don't want to have a map file the size of War and Peace, so I thought I would use the attribute/item/column binding abilities of Mapserver's CLASS and LABEL objects. To that end, one of the columns the feature table will be style name (or maybe feature class), which I'll use to join to a style table (with COLOR, WIDTH, etc columns) to get the feature rendered in a simple style. After a quick review of Mapserver's doc, most of the most important objects can be bound to attributes, with two exceptions, SYMBOL 'name' and FONT 'name': CLASS STYLE ANGLE [angle] COLOR [color] #R G B OUTLINECOLOR [olcolor] #R G B SIZE [size] WIDTH [width] # v5.2 SYMBOL 'name' # in SYMBOLSET END #STYLE TEXT ([label]) LABEL ANGLE [label_angle] COLOR [label_color] OUTLINECOLOR [label_olcolor] PRIORITY [label_priority] SIZE [label_size] FONT 'name' # in FONTSET END #LABEL END # CLASS How difficult would it be to have attribute binding for SYMBOL and FONT? I suppose I could use mapscript, but I'd rather not. Thanks! Brent Fraser ___ 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] attribute bindings for SYMBOL and FONT?
Brent Fraser wrote: The short story: Is it possible to bind a CLASS's SYMBOL object to an attribute (i.e store the symbol name as a attribute of a feature)? And the LABEL objects FONT name? Binding would be with style'symbol, instead of class symbol. Font also can be bound. I will update the docs to reflect that. The list of binding elements is: For style: SIZE, WIDTH, ANGLE, COLOR, OUTLINECOLOR, SYMBOL, OUTLINEWIDTH, OPACITY for labels: SIZE, ANGLE, COLOR, OUTLINECOLOR, FONT, PRIORITY regards, The Long Story: --- I've been working with the yet-to-be-released Feature Editor in Geomoose v2. It allows the user to digitize features (points, lines, and polygons) and assign attributes, then stores them in PostGIS. I want to allow simple styling and don't want to have a map file the size of War and Peace, so I thought I would use the attribute/item/column binding abilities of Mapserver's CLASS and LABEL objects. To that end, one of the columns the feature table will be style name (or maybe feature class), which I'll use to join to a style table (with COLOR, WIDTH, etc columns) to get the feature rendered in a simple style. After a quick review of Mapserver's doc, most of the most important objects can be bound to attributes, with two exceptions, SYMBOL 'name' and FONT 'name': CLASS STYLE ANGLE [angle] COLOR [color] #R G B OUTLINECOLOR [olcolor] #R G B SIZE [size] WIDTH [width] # v5.2 SYMBOL 'name' # in SYMBOLSET END #STYLE TEXT ([label]) LABEL ANGLE [label_angle] COLOR [label_color] OUTLINECOLOR [label_olcolor] PRIORITY [label_priority] SIZE [label_size] FONT 'name' # in FONTSET END #LABEL END # CLASS How difficult would it be to have attribute binding for SYMBOL and FONT? I suppose I could use mapscript, but I'd rather not. Thanks! Brent Fraser ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Assefa Yewondwossen Software Analyst Email: ass...@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] attribute bindings for SYMBOL and FONT?
Dan, Thanks for the reminder: Google First It looks like both SYMBOL and FONT use binding. Brent http://research.dmsolutions.ca/?p=118 This would indicate the answer is yes. - Original Message From: Brent Fraser bfra...@geoanalytic.com To: mapserver-users@lists.osgeo.org mapserver-users@lists.osgeo.org Sent: Fri, December 18, 2009 11:05:28 AM Subject: [mapserver-users] attribute bindings for SYMBOL and FONT? The short story: Is it possible to bind a CLASS's SYMBOL object to an attribute (i.e store the symbol name as a attribute of a feature)? And the LABEL objects FONT name? The Long Story: --- I've been working with the yet-to-be-released Feature Editor in Geomoose v2. It allows the user to digitize features (points, lines, and polygons) and assign attributes, then stores them in PostGIS. I want to allow simple styling and don't want to have a map file the size of War and Peace, so I thought I would use the attribute/item/column binding abilities of Mapserver's CLASS and LABEL objects. To that end, one of the columns the feature table will be style name (or maybe feature class), which I'll use to join to a style table (with COLOR, WIDTH, etc columns) to get the feature rendered in a simple style. After a quick review of Mapserver's doc, most of the most important objects can be bound to attributes, with two exceptions, SYMBOL 'name' and FONT 'name': CLASS STYLE ANGLE [angle] COLOR [color] #R G B OUTLINECOLOR [olcolor] #R G B SIZE [size] WIDTH [width] # v5.2 SYMBOL 'name' # in SYMBOLSET END #STYLE TEXT ([label]) LABEL ANGLE [label_angle] COLOR [label_color] OUTLINECOLOR [label_olcolor] PRIORITY [label_priority] SIZE [label_size] FONT 'name' # in FONTSET END #LABEL END # CLASS How difficult would it be to have attribute binding for SYMBOL and FONT? I suppose I could use mapscript, but I'd rather not. Thanks! Brent Fraser ___ 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] attribute bindings for SYMBOL and FONT?
Exellent! Now on to WFS-T-free feature editing! Binding would be with style'symbol, instead of class symbol. Font also can be bound. I will update the docs to reflect that. The list of binding elements is: For style: SIZE, WIDTH, ANGLE, COLOR, OUTLINECOLOR, SYMBOL, OUTLINEWIDTH, OPACITY for labels: SIZE, ANGLE, COLOR, OUTLINECOLOR, FONT, PRIORITY regards, Assefa Yewondwossen Software Analyst Email: ass...@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] Lines at Tile borders
Alright.. I will try to install a more recent version..and will check out the metatiles thingy too. Thank u. Regards, Shaz On Fri, Dec 18, 2009 at 2:09 AM, Lime, Steve D (DNR) steve.l...@state.mn.us wrote: You might try a more recent version. Either 5.4.2 or 5.6 to see if the bug has been fixed. I don’t recall off the top of my head… Using metatiles (that is, a tile rendered intentionally large and then clipped) is one way around problems like this and tiling tools like TileCache support that type of processing. Steve *From:* mapserver-users-boun...@lists.osgeo.org [mailto: mapserver-users-boun...@lists.osgeo.org] *On Behalf Of *Shaz N *Sent:* Wednesday, December 16, 2009 11:35 PM *To:* mapserver-users@lists.osgeo.org *Subject:* [mapserver-users] Lines at Tile borders Dear MapServer users.. I have an issue with the rendering of lines at tile borders on my map, which is exactly like this picture: http://crschmidt.net/mapping/mapserverbug.png Being a new MapServer user, I checked previous threads related to this problem and found some suggestions to use TileCache or OpenLayers etc The threads were pretty old (like 2007..2008), so I would like to know if there is any other solution to the problem I am facing now. More info: CLASS NAME 'Others' EXPRESSION ('[class]' eq 'AU' OR '[class]' eq 'GR' OR '[class]' eq 'PV' OR '[class]' eq 'TR') MAXSCALE 32000 MINSCALE 16001 STYLE COLOR 255 160 122 WIDTH 5 MINWIDTH 5 MAXWIDTH 6 ANTIALIAS TRUE END END I use version 5. Please advice me on how to proceed. Thank you very much Regards ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] How to draw a circle using MapScript?
Here's an example that draws a 1km diameter two different ways: http://maps.dnr.state.mn.us/mapserver_demos/circles.map It shows two ways to do this. One using a circle layer and the other using a circle symbol but with different size units (e.g. non-pixel). Apparently a circle layer takes features consisting of two points where the points are on the circle and directly opposite one another. Their mid-point defines the center point. Why I did it this way is a bit of a mystery but it is what it is... The buffer method is also perfectly valid. Steve -Original Message- From: Helen Eskina [mailto:hesk...@ubitech.com] Sent: Friday, December 18, 2009 9:23 AM To: Lime, Steve D (DNR) Subject: RE: [mapserver-users] How to draw a circle using MapScript? Hi Steve, Thank you for the reply! Looking forward to your example! Helen -Original Message- From: Lime, Steve D (DNR) [mailto:steve.l...@state.mn.us] Sent: Thursday, December 17, 2009 6:29 PM To: Lime, Steve D (DNR); Dan Little; Helen Eskina; mapserver-users@lists.osgeo.org Subject: RE: [mapserver-users] How to draw a circle using MapScript? After mulling this over I think I'm wrong. Conceptually it's correct but the points represent the center and a point on the circle I think. I'll post a stand-alone example later tonite... Steve From: mapserver-users-boun...@lists.osgeo.org [mapserver-users-boun...@lists.osgeo.org] On Behalf Of Lime, Steve D (DNR) [steve.l...@state.mn.us] Sent: Thursday, December 17, 2009 4:30 PM To: Dan Little; Helen Eskina; mapserver-users@lists.osgeo.org Subject: RE: [mapserver-users] How to draw a circle using MapScript? In another approach, I believe MapServer wants you to define a bounding box for the circle by creating a line shape with the first point at the UL coordinate of that box and the second coordinate at the LR coordinate of the box. So you'd offset your center point .5 KM to create those points. You can add the resulting shape to the appropriate layer to draw it. I'll check to make sure, but I think that will work. Steve From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Dan Little Sent: Thursday, December 17, 2009 3:54 PM To: Helen Eskina; mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] How to draw a circle using MapScript? Totally off the cuff $shape = ms_shapeObjFromWKT('POINT('+$x+' '+$y+')'); $shape = $shape-buffer($radius); From: Helen Eskina hesk...@ubitech.com To: mapserver-users@lists.osgeo.org Sent: Thu, December 17, 2009 3:50:20 PM Subject: [mapserver-users] How to draw a circle using MapScript? Hello List, I want to be able to draw a circle dynamically using PHP MapScript. The circle is defined by the coordinates of the centre and the radius in kilometers. I realize that the circle is a polygon and I should probably calculate all points. What is the best way to do it? I would really appreciate any help! Thank you, Helen No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.427 / Virus Database: 270.14.103/2558 - Release Date: 12/17/09 08:30: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 23, Issue 61 (Out of Office)
the size of War and Peace, so I thought I would use the attribute/item/column binding abilities of Mapserver's CLASS and LABEL objects. To that end, one of the columns the feature table will be style name (or maybe feature class), which I'll use to join to a style table (with COLOR, WIDTH, etc columns) to get the feature rendered in a simple style. After a quick review of Mapserver's doc, most of the most important objects can be bound to attributes, with two exceptions, SYMBOL 'name' and FONT 'name': CLASS STYLE ANGLE [angle] COLOR [color] #R G B OUTLINECOLOR [olcolor] #R G B SIZE [size] WIDTH [width] # v5.2 SYMBOL 'name' # in SYMBOLSET END #STYLE TEXT ([label]) LABEL ANGLE [label_angle] COLOR [label_color] OUTLINECOLOR [label_olcolor] PRIORITY [label_priority] SIZE [label_size] FONT 'name' # in FONTSET END #LABEL END # CLASS How difficult would it be to have attribute binding for SYMBOL and FONT? I suppose I could use mapscript, but I'd rather not. Thanks! Brent Fraser ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Message: 5 Date: Fri, 18 Dec 2009 11:10:28 -0700 (Mountain Standard Time) From: Brent Fraser bfra...@geoanalytic.com Subject: Re: [mapserver-users] attribute bindings for SYMBOL and FONT? To: Yewondwossen Assefa yass...@dmsolutions.ca Cc: mapserver-users@lists.osgeo.org mapserver-users@lists.osgeo.org Message-ID: .65.255.239.241.1261159828.squir...@65.255.239.241 Content-Type: text/plain;charset=iso-8859-1 Exellent! Now on to WFS-T-free feature editing! Binding would be with style'symbol, instead of class symbol. Font also can be bound. I will update the docs to reflect that. The list of binding elements is: For style: SIZE, WIDTH, ANGLE, COLOR, OUTLINECOLOR, SYMBOL, OUTLINEWIDTH, OPACITY for labels: SIZE, ANGLE, COLOR, OUTLINECOLOR, FONT, PRIORITY regards, Assefa Yewondwossen Software Analyst Email: ass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 -- Message: 6 Date: Fri, 18 Dec 2009 23:00:47 +0400 From: Shaz N geo.engineer...@gmail.com Subject: Re: [mapserver-users] Lines at Tile borders To: Lime, Steve D (DNR) steve.l...@state.mn.us Cc: mapserver-users@lists.osgeo.org Message-ID: d46d8b70912181100h5cd7f3b3r322488cb2ce61...@mail.gmail.com Content-Type: text/plain; charset=windows-1252 Alright.. I will try to install a more recent version..and will check out the metatiles thingy too. Thank u. Regards, Shaz On Fri, Dec 18, 2009 at 2:09 AM, Lime, Steve D (DNR) steve.l...@state.mn.us wrote: You might try a more recent version. Either 5.4.2 or 5.6 to see if the bug has been fixed. I don*t recall off the top of my head* Using metatiles (that is, a tile rendered intentionally large and then clipped) is one way around problems like this and tiling tools like TileCache support that type of processing. Steve *From:* mapserver-users-boun...@lists.osgeo.org [mailto: mapserver-users-boun...@lists.osgeo.org] *On Behalf Of *Shaz N *Sent:* Wednesday, December 16, 2009 11:35 PM *To:* mapserver-users@lists.osgeo.org *Subject:* [mapserver-users] Lines at Tile borders Dear MapServer users.. I have an issue with the rendering of lines at tile borders on my map, which is exactly like this picture: http://crschmidt.net/mapping/mapserverbug.png Being a new MapServer user, I checked previous threads related to this problem and found some suggestions to use TileCache or OpenLayers etc The threads were pretty old (like 2007..2008), so I would like to know if there is any other solution to the problem I am facing now. More info: CLASS NAME 'Others' EXPRESSION ('[class]' eq 'AU' OR '[class]' eq 'GR' OR '[class]' eq 'PV' OR '[class]' eq 'TR') MAXSCALE 32000 MINSCALE 16001 STYLE COLOR 255 160 122 WIDTH 5 MINWIDTH 5 MAXWIDTH 6 ANTIALIAS TRUE END END I use version 5. Please advice me on how to proceed. Thank you very much Regards -- next part -- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20091218/4edec6be/attachment-0001.html -- Message: 7 Date: Fri, 18 Dec 2009 13:55:18 -0600 From: Lime, Steve D (DNR) steve.l...@state.mn.us Subject: RE: [mapserver-users] How to draw a circle using MapScript? To: Helen Eskina hesk...@ubitech.com Cc: mapserver-users@lists.osgeo.org mapserver-users@lists.osgeo.org Message-ID