Re: [mapserver-users] Trouble shooting SLD?
Hi, I have never made a single SLD file myself, just edited something working that I have found so unfortunately I fear I cannot give very good advice. I did, however, compare something that works for me and your SLD file and these are the differences: My first line has more elements: StyledLayerDescriptor version=1.0.0 xmlns=http://www.opengis.net/sld; xmlns:gml=http://www.opengis.net/gml; xmlns:ogc=http://www.opengis.net/ogc; xmlns:xlink=http://www.w3.org/1999/xlink; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://www.opengis.net/sld http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd; You have Title, I don't. Hard to believe this is critical, though TitleCommunities/Title Then you are giving the geometry element as Geometry PropertyNameCommunities/PropertyName /Geometry I do not have that element at all. Mapserver documentation says that it is not supported and I also believe that now it is wrong in your SLD. I understand that your SLD is trying to telll now that the geometry of your layer is stored in a field named Communities. By the way, it might be better to use different names in various places instead of Communities everywhere at least when testing. Geoserver folks have made a SLD cookbook http://docs.geoserver.org/stable/en/user/styling/sld-cookbook/index.html it is probably worth reading. And here is the SLD that I looked at when doing comparison. I took it out from my working Mapserver layer with GetStyles. Perhaps you could try the same, style your layer to look good by editing the mapfile and take the SLD out with GetStyles and you should have a good template in your hands. StyledLayerDescriptor version=1.0.0 xmlns=http://www.opengis.net/sld; xmlns:gml=http://www.opengis.net/gml; xmlns:ogc=http://www.opengis.net/ogc; xmlns:xlink=http://www.w3.org/1999/xlink; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://www.opengis.net/sld http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd; NamedLayer Namemaxspeed_query/Name UserStyle FeatureTypeStyle Rule LineSymbolizer Stroke CssParameter name=stroke#ff/CssParameter CssParameter name=stroke-opacity1.00/CssParameter CssParameter name=stroke-width3.00/CssParameter /Stroke /LineSymbolizer /Rule /FeatureTypeStyle /UserStyle /NamedLayer /StyledLayerDescriptor -Jukka Rahkonen- K wrote As I am still unable to get my SLD to work, I wonder if the shape file (is it a shape file?) and map file for that example is available to download somewhere? This way I can toss it on my server and it would let me see if my problem is software related, rather then something wrong with my files. Thanks, Ken On 18/10/2010 5:31 PM, Jeff McKenna wrote: On 10-10-18 11:16 AM, Rahkonen Jukka wrote: I noticed that none of the full request links in the document http://mapserver.org/ogc/sld.html are working now Good catch Jukka. The examples should be working again, please re-try. -jeff ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] PHP mapscript: Custom rectangles overlay
Hi there: Well as u cud see in the image below... we wer trying to have a custom rectangles overlay the base map... When we provided the bounding box coordinates directly in the form of multidimensional array; sort of like hard-coded them... everything is well and cool.. Now We r trying to assign check boxes to every array sort of like user can select/deselect his choice of rectangles..So all we did was to change the GetRect() Function ... Although both the old new edited functions yield the same output when I var_dump ($qresult); bt somehow this time the rectangles doesnt appear.. I tweaked the code but no success yet.. hoping sumone cud have a look point out the error...!!@ CheckBox php Code :- ?php session_start(); //-- // GetRect - returns array containing store table $script_name = index3.php; $table = array( // array('id','state','lat_hi','long_hi','lat_low','long_low'), //field names array(1,'andaman',13.59,94,06.73,92.53), array(2,'AP', 19.87,84.78,12.59,76.45), array(3,'Gujarat',24.72,74.55,20.15,68.35), array(4,'kerala' ,12.75,77.37,08.18,74.86), array(5,'punjab' ,32.46,76.93,29.53,73.87), ); function GetRect() { if (isset($_POST['submit'])) { $tab = $_POST['tab']; $qresult = array(); foreach ($tab as $t) $qresult[] = $table[$t]; return $qresult; } } //-- // AddPoints - add store locations to 'poi' map layer function AddPoints ( $map, $qresult ) { $this_layer = $map-getLayerByName('poi'); $i = 0; foreach($qresult as $row) { $poi[$i] = ms_newLineObj(); $shp[$i] = ms_newShapeObj(MS_SHAPE_POLYGON); $poi[$i]-addXY($row[5],$row[4]); $poi[$i]-addXY($row[3],$row[4]); $poi[$i]-addXY($row[3],$row[2]); $poi[$i]-addXY($row[5],$row[2]); $poi[$i]-addXY($row[5],$row[4]); $shp[$i]-add($poi[$i]); $shp[$i]-set(index, $row[0]); $this_layer-addFeature( $shp[$i] ); $i++; } return; } // end AddPoints $map = ms_newMapObj(/ms4w/apache/htdocs/india_roads3.map); $extent = array(62.786563, 7.392830, 102.765356, 36.151322); $qresult = GetRect(); AddPoints( $map, $qresult ); $image=$map-draw(); $image_url=$image-saveWebImage(); ? CheckBox Html code form method=POST name=myform2 action=action=?php echo $_SERVER['PHP_SELF']; ? ?php foreach ($table as $id=$ar) { ? brinput name=tab[] type=checkbox value=?=$id?Id : ?=$id?, Name : ?=$ar[0]? ?php } ? brbrinput name=submit value=submit type=submit /form This is the php code for GetRect() when we stored the arrays in session; which is working fine function GetStoreTable() { $i=0; $allValuesPresent=1; if (isset($_SESSION['table'])) { foreach ($_SESSION['table'] as $arr) { if (! isset($arr[$i])) { $allValuesPresent = 0; break; } // Will get overwritten by query if any are missing $qresult[$i]=$arr; $i++; } return $qresult; } } // end GetStoreTable Image:- http://osgeo-org.1803224.n2.nabble.com/file/n5650035/polygon5.jpg -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/PHP-mapscript-Custom-rectangles-overlay-tp5650035p5650035.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] ESRI binary grids RRD files ?
Hi Guys, ESRI Binary grids contains a bunch of adf files and rrd files that I believe contains pyramids. Does MapServer needs those rrd files ? the question is because they are very big ! thanks -- Sebastian E. Ovide ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] WMS/WFS multiple output projection or select projection by SRS parameter
Hi!, I'm trying to define multiple output projections in a WMS server, but it doesn't work, as doc says if you define wms_srs it's possible but mapserver says that SRS Invalid SRS given, I tried several ways and any works, also in getCapabilities only show the projection section. any ideas? it's possible without mapscript? My mapfile looks like: MAP SHAPEPATH ./images IMAGECOLOR 255 0 0 CONFIG MS_ERRORFILE /tmp/mapserver.log WEB IMAGEPATH /tmp IMAGEURL http://localhost/tmp/; METADATA wfs_titleDemo wfs_onlineresource http://localhost/cgi-bin/mapserv?; wfs_srs EPSG:32631 EPSG:900913 EPSG:4326 ows_schemas_location http://ogc.dmsolutions.ca; END END PROJECTION init=epsg:4326 END LAYER NAME topo DATA cat.png DEBUG 4 PROJECTION init=epsg:32631 END STATUS ON TYPE RASTER END END when I try to change the projection section with any of the three SRS it works, I tried many combinations and any works. Also I tried with WFS and it doesn't works. thanks! ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] WMS/WFS multiple output projection or selectprojection by SRS parameter
Hi, I would guess it is because you have the Google projection on your list. Try to take is away and see if it works with the two othet ones on the list. If yes, add these lines to your projection file # Google-projection 900913 +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgri...@null +no_defs Otherwise you should be able to do it by following the document http://mapserver.org/ogc/wms_server.html Supported output projections for all layers are given under MAP-WEB-METADATA, for example wms_srsEPSG:3067 EPSG:2393 EPSG:4326 EPSG:900913 Layers may have different SRS lists if they have an own wms_srs I believe. -Jukka Rahkonen- rai 8 wrote Hi!, I'm trying to define multiple output projections in a WMS server, but it doesn't work, as doc says if you define wms_srs it's possible but mapserver says that SRS Invalid SRS given, I tried several ways and any works, also in getCapabilities only show the projection section. any ideas? it's possible without mapscript? My mapfile looks like: MAP SHAPEPATH ./images IMAGECOLOR 255 0 0 CONFIG MS_ERRORFILE /tmp/mapserver.log WEB IMAGEPATH /tmp IMAGEURL http://localhost/tmp/; METADATA wfs_titleDemo wfs_onlineresource http://localhost/cgi-bin/mapserv?; wfs_srs EPSG:32631 EPSG:900913 EPSG:4326 ows_schemas_location http://ogc.dmsolutions.ca; END END PROJECTION init=epsg:4326 END LAYER NAME topo DATA cat.png DEBUG 4 PROJECTION init=epsg:32631 END STATUS ON TYPE RASTER END END when I try to change the projection section with any of the three SRS it works, I tried many combinations and any works. Also I tried with WFS and it doesn't works. thanks! ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Trouble shooting SLD?
Hi there, I do not think there is any thing wrong wit the LSD you posted. I used it locally with MapServer svn and It did apply (after I changed the layer name to my local data set. I see that your map file has the log set and you should be able to see something in the log file starting with msApplySLD() Do you see that? Another point is that the sld file is temprarly saved into the tnagepath defined in your mapfile (IMAGEPATH 'R:/webtemp/' ): Would there be any problem for the web user to write files in that directory? You can use also the SLD_BODY to avoid that. Here is your encoded sld [1] that I have used and works (you need to change the name inside it back to reflect your map file): Please also indicate the version of MapServer (sorry if I have missed this info in the thread). I am using the current trunk version. regards [1] : %3CStyledLayerDescriptor+version%3D%221.0.0%22%3E%3CNamedLayer%3E%3CName%3EWorldGen%3C%2FName%3E%3CUserStyle%3E%3CTitle%3ECommunities%3C%2FTitle%3E%3CFeatureTypeStyle%3E%3CRule%3E%3CPolygonSymbolizer%3E%3CFill%3E%3CCssParameter+name%3D%22fill%22%3E%23d2741c%3C%2FCssParameter%3E%3CCssParameter+name%3D%22fill-opacity%22%3E1%3C%2FCssParameter%3E%3C%2FFill%3E%3CStroke%3E%3CCssParameter+name%3D%22stroke%22%3E%2300%3C%2FCssParameter%3E%3CCssParameter+name%3D%22stroke-width%22%3E0.26%3C%2FCssParameter%3E%3CCssParameter+name%3D%22stroke-opacity%22%3E1%3C%2FCssParameter%3E%3C%2FStroke%3E%3C%2FPolygonSymbolizer%3E%3C%2FRule%3E%3C%2FFeatureTypeStyle%3E%3C%2FUserStyle%3E%3C%2FNamedLayer%3E%3C%2FStyledLayerDescriptor%3E On 18/10/2010 5:22 PM, K wrote: As I am still unable to get my SLD to work, I wonder if the shape file (is it a shape file?) and map file for that example is available to download somewhere? This way I can toss it on my server and it would let me see if my problem is software related, rather then something wrong with my files. Thanks, Ken On 18/10/2010 5:31 PM, Jeff McKenna wrote: On 10-10-18 11:16 AM, Rahkonen Jukka wrote: I noticed that none of the full request links in the document http://mapserver.org/ogc/sld.html are working now Good catch Jukka. The examples should be working again, please re-try. -jeff ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Assefa Yewondwossen Software Analyst Email: yass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] ESRI binary grids RRD files ?
Sebastian E. Ovide wrote: Hi Guys, ESRI Binary grids contains a bunch of adf files and rrd files that I believe contains pyramids. Does MapServer needs those rrd files ? the question is because they are very big ! Sebastian, Yes, MapServer will take advantage of .rrd overviews for ESRI binary grids. You can delete them but in some cases performance will suffer. Best regards, -- ---+-- I set the clouds in motion - turn up | Frank Warmerdam, warmer...@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush| Geospatial Programmer for Rent ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Ogrtindex and attribute data
Hi, Can somebody affirm that using ogr tileindex is breaking the access to the attribute date of the real datasets, for example shapefiles? Somebody was trying to use WMS GetFeatureInfo with a ogrtindex layer and failed and so did I in the test I made for verification. Now I have been trying myself to classify an orgtindex layer but CLASSITEM/EXPRESSION does not select anything. FILTERITEM/FILTER does not work either. Both systems work if I change a huge combined shapefile in place of the tileindex connection and without EXPRESSION or FILTER Mapserver is drawing all the features OK. If access to attribute data is not implemented, wouldn't it be cool to have it? Multigigabyte shapefiles are tedious to update but I have a reason to use files instead of a database in this case. -Jukka Rahkonen- ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Trouble shooting SLD?
Thanks again for your assistance. The SLD file I was using was from the mapserver repository that Jeff posted earlier in the thread. I went ahead and edited it and removed all the differing bits from yours. No change, still not reading the SLD file. I then decided to create a line file, in case the issue was polygons, and use the SLD file you posted, with the only change being the name, still not working. I went through and changed all the names to be different, then tried matching the SLD name with different parts in the odd hope it would work, again no luck. No matter what I do it seems the SLD is being ignored. Ken On 19/10/2010 3:52 AM, Rahkonen Jukka wrote: Hi, I have never made a single SLD file myself, just edited something working that I have found so unfortunately I fear I cannot give very good advice. I did, however, compare something that works for me and your SLD file and these are the differences: My first line has more elements: StyledLayerDescriptor version=1.0.0 xmlns=http://www.opengis.net/sld; xmlns:gml=http://www.opengis.net/gml; xmlns:ogc=http://www.opengis.net/ogc; xmlns:xlink=http://www.w3.org/1999/xlink; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://www.opengis.net/sld http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd; You have Title, I don't. Hard to believe this is critical, though TitleCommunities/Title Then you are giving the geometry element as Geometry PropertyNameCommunities/PropertyName /Geometry I do not have that element at all. Mapserver documentation says that it is not supported and I also believe that now it is wrong in your SLD. I understand that your SLD is trying to telll now that the geometry of your layer is stored in a field named Communities. By the way, it might be better to use different names in various places instead of Communities everywhere at least when testing. Geoserver folks have made a SLD cookbook http://docs.geoserver.org/stable/en/user/styling/sld-cookbook/index.html it is probably worth reading. And here is the SLD that I looked at when doing comparison. I took it out from my working Mapserver layer with GetStyles. Perhaps you could try the same, style your layer to look good by editing the mapfile and take the SLD out with GetStyles and you should have a good template in your hands. StyledLayerDescriptor version=1.0.0 xmlns=http://www.opengis.net/sld; xmlns:gml=http://www.opengis.net/gml; xmlns:ogc=http://www.opengis.net/ogc; xmlns:xlink=http://www.w3.org/1999/xlink; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://www.opengis.net/sld http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd; NamedLayer Namemaxspeed_query/Name UserStyle FeatureTypeStyle Rule LineSymbolizer Stroke CssParameter name=stroke#ff/CssParameter CssParameter name=stroke-opacity1.00/CssParameter CssParameter name=stroke-width3.00/CssParameter /Stroke /LineSymbolizer /Rule /FeatureTypeStyle /UserStyle /NamedLayer /StyledLayerDescriptor -Jukka Rahkonen- K wrote As I am still unable to get my SLD to work, I wonder if the shape file (is it a shape file?) and map file for that example is available to download somewhere? This way I can toss it on my server and it would let me see if my problem is software related, rather then something wrong with my files. Thanks, Ken On 18/10/2010 5:31 PM, Jeff McKenna wrote: On 10-10-18 11:16 AM, Rahkonen Jukka wrote: I noticed that none of the full request links in the document http://mapserver.org/ogc/sld.html are working now Good catch Jukka. The examples should be working again, please re-try. -jeff ___ 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] Trouble shooting SLD?
Hi Ken, See Assefa's last message to you, he made some great points. In fact I hit many of the points that Assefa mentioned when fixing those demo.mapserver.org examples. -jeff On 10-10-19 5:44 PM, K wrote: Thanks again for your assistance. The SLD file I was using was from the mapserver repository that Jeff posted earlier in the thread. I went ahead and edited it and removed all the differing bits from yours. No change, still not reading the SLD file. I then decided to create a line file, in case the issue was polygons, and use the SLD file you posted, with the only change being the name, still not working. I went through and changed all the names to be different, then tried matching the SLD name with different parts in the odd hope it would work, again no luck. No matter what I do it seems the SLD is being ignored. Ken On 19/10/2010 3:52 AM, Rahkonen Jukka wrote: Hi, I have never made a single SLD file myself, just edited something working that I have found so unfortunately I fear I cannot give very good advice. I did, however, compare something that works for me and your SLD file and these are the differences: My first line has more elements: StyledLayerDescriptor version=1.0.0 xmlns=http://www.opengis.net/sld; xmlns:gml=http://www.opengis.net/gml; xmlns:ogc=http://www.opengis.net/ogc; xmlns:xlink=http://www.w3.org/1999/xlink; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://www.opengis.net/sld http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd; You have Title, I don't. Hard to believe this is critical, though TitleCommunities/Title Then you are giving the geometry element as Geometry PropertyNameCommunities/PropertyName /Geometry I do not have that element at all. Mapserver documentation says that it is not supported and I also believe that now it is wrong in your SLD. I understand that your SLD is trying to telll now that the geometry of your layer is stored in a field named Communities. By the way, it might be better to use different names in various places instead of Communities everywhere at least when testing. Geoserver folks have made a SLD cookbook http://docs.geoserver.org/stable/en/user/styling/sld-cookbook/index.html it is probably worth reading. And here is the SLD that I looked at when doing comparison. I took it out from my working Mapserver layer with GetStyles. Perhaps you could try the same, style your layer to look good by editing the mapfile and take the SLD out with GetStyles and you should have a good template in your hands. StyledLayerDescriptor version=1.0.0 xmlns=http://www.opengis.net/sld; xmlns:gml=http://www.opengis.net/gml; xmlns:ogc=http://www.opengis.net/ogc; xmlns:xlink=http://www.w3.org/1999/xlink; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://www.opengis.net/sld http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd; NamedLayer Namemaxspeed_query/Name UserStyle FeatureTypeStyle Rule LineSymbolizer Stroke CssParameter name=stroke#ff/CssParameter CssParameter name=stroke-opacity1.00/CssParameter CssParameter name=stroke-width3.00/CssParameter /Stroke /LineSymbolizer /Rule /FeatureTypeStyle /UserStyle /NamedLayer /StyledLayerDescriptor -Jukka Rahkonen- K wrote As I am still unable to get my SLD to work, I wonder if the shape file (is it a shape file?) and map file for that example is available to download somewhere? This way I can toss it on my server and it would let me see if my problem is software related, rather then something wrong with my files. Thanks, Ken On 18/10/2010 5:31 PM, Jeff McKenna wrote: On 10-10-18 11:16 AM, Rahkonen Jukka wrote: I noticed that none of the full request links in the document http://mapserver.org/ogc/sld.html are working now Good catch Jukka. The examples should be working again, please re-try. -jeff -- Jeff McKenna MapServer 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
[mapserver-users] wms_title display in ESRI
I have a mapfile that has wms_title strings with single quotes. When I open the WMS layer in Arcmap any layers with a single quote are not displayed properly, with the string truncated after where the quote is. How do I properly insert an apostrophe into a wms_title? Jim White ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] wms_title display in ESRI
Try using apos; and see how it goes On Tue, Oct 19, 2010 at 3:51 PM, jim jbw2...@earthlink.net wrote: I have a mapfile that has wms_title strings with single quotes. When I open the WMS layer in Arcmap any layers with a single quote are not displayed properly, with the string truncated after where the quote is. How do I properly insert an apostrophe into a wms_title? Jim 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] Trouble shooting SLD?
Do you mean the part about using GetStyles to get a SLD blurb from Mapserver? I did try that originally, well I used PHP Mapscript to do it. On the odd chance that GetStyles does something different I just did a GetStyles request, changed the color and nothing else. Still not working. Ken On 19/10/2010 7:32 PM, Jeff McKenna wrote: Hi Ken, See Assefa's last message to you, he made some great points. In fact I hit many of the points that Assefa mentioned when fixing those demo.mapserver.org examples. -jeff On 10-10-19 5:44 PM, K wrote: Thanks again for your assistance. The SLD file I was using was from the mapserver repository that Jeff posted earlier in the thread. I went ahead and edited it and removed all the differing bits from yours. No change, still not reading the SLD file. I then decided to create a line file, in case the issue was polygons, and use the SLD file you posted, with the only change being the name, still not working. I went through and changed all the names to be different, then tried matching the SLD name with different parts in the odd hope it would work, again no luck. No matter what I do it seems the SLD is being ignored. Ken On 19/10/2010 3:52 AM, Rahkonen Jukka wrote: Hi, I have never made a single SLD file myself, just edited something working that I have found so unfortunately I fear I cannot give very good advice. I did, however, compare something that works for me and your SLD file and these are the differences: My first line has more elements: StyledLayerDescriptor version=1.0.0 xmlns=http://www.opengis.net/sld; xmlns:gml=http://www.opengis.net/gml; xmlns:ogc=http://www.opengis.net/ogc; xmlns:xlink=http://www.w3.org/1999/xlink; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://www.opengis.net/sld http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd; You have Title, I don't. Hard to believe this is critical, though TitleCommunities/Title Then you are giving the geometry element as Geometry PropertyNameCommunities/PropertyName /Geometry I do not have that element at all. Mapserver documentation says that it is not supported and I also believe that now it is wrong in your SLD. I understand that your SLD is trying to telll now that the geometry of your layer is stored in a field named Communities. By the way, it might be better to use different names in various places instead of Communities everywhere at least when testing. Geoserver folks have made a SLD cookbook http://docs.geoserver.org/stable/en/user/styling/sld-cookbook/index.html it is probably worth reading. And here is the SLD that I looked at when doing comparison. I took it out from my working Mapserver layer with GetStyles. Perhaps you could try the same, style your layer to look good by editing the mapfile and take the SLD out with GetStyles and you should have a good template in your hands. StyledLayerDescriptor version=1.0.0 xmlns=http://www.opengis.net/sld; xmlns:gml=http://www.opengis.net/gml; xmlns:ogc=http://www.opengis.net/ogc; xmlns:xlink=http://www.w3.org/1999/xlink; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://www.opengis.net/sld http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd; NamedLayer Namemaxspeed_query/Name UserStyle FeatureTypeStyle Rule LineSymbolizer Stroke CssParameter name=stroke#ff/CssParameter CssParameter name=stroke-opacity1.00/CssParameter CssParameter name=stroke-width3.00/CssParameter /Stroke /LineSymbolizer /Rule /FeatureTypeStyle /UserStyle /NamedLayer /StyledLayerDescriptor -Jukka Rahkonen- K wrote As I am still unable to get my SLD to work, I wonder if the shape file (is it a shape file?) and map file for that example is available to download somewhere? This way I can toss it on my server and it would let me see if my problem is software related, rather then something wrong with my files. Thanks, Ken On 18/10/2010 5:31 PM, Jeff McKenna wrote: On 10-10-18 11:16 AM, Rahkonen Jukka wrote: I noticed that none of the full request links in the document http://mapserver.org/ogc/sld.html are working now Good catch Jukka. The examples should be working again, please re-try. -jeff ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users