SLD pointsymbolizer externalgraphic trouble
Pagurek,Debbie [NCR]
Debbie.Pagurek at EC.GC.CA
Tue Jul 26 13:22:05 PDT 2005
Assefa,
Are nightly builds available for Windows binaries?
I changed my sld to show GIF instead of image/gif but it's still not working.
I realized in the examples I sent earlier that my sld didn't contain a Geometry tag. What should this field "property name" contain? A name of a field in the shapefile? the word "msGeometry"?
Can you think of anything else I can check on my system to test this?
Am I missing something important in my mapfile? I've tried using my own mapfile and also the gmap75_wms.map file that comes with ms4w.
At this point I'm just not getting any sld with an external graphic to work. Will keep trying.
Debbie
-------------------
Debbie,
I have tested your sld with local data and the only "problem" I found
was that the format used is <Format>image/gif</Format> instead of
<Format>gif</Format>. I have rechcked the sld specs and it specifies
that the format should be of MIME type so your sld should be valid. I
have corrected the test to test for GIF or image/gif (as well as PNG and
image/png). (related bug is
http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1430).
If possible use the latest version from cvs or until you get a new
build you can use GIF as the value of the format.
Later,
Pagurek,Debbie [NCR] wrote:
> I am having trouble with an SLD that should put an externalgraphic at
> a point. I am getting a blank map and when I do a view source I am
> seeing Gobbldygook: GIF87aXÿ€ ...etc (this happens if I set
> imagetype GIF or PNG), and also if I don't set IMAGETYPE at all. An
> SLD that uses an external graphic for a polygon layer works fine.
>
> I am including the sld file and my mapfile as attachments, and the
> following is the URL I'm using.
>
> http://localhost/cgi-bin/mapserv.exe?map=c:\ms4w\apps\chameleon-2.2\ce
> si\map\pix.map&version=1.1.1&service=wms&request=getmap&layers=popplac
> e&sld=http://localhost/chameleon/cesi/sldtest.xml
>
> I'm on Windows.
> MapServer version 4.6.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
> OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE
> SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER
> SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER INPUT=JPEG INPUT=POSTGIS
> INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG
>
> Anybody have any ideas? Is this a bug?
>
> D. Pagurek
>
>
> ----------------------------------------------------------------------
> --
>
> <?xml version="1.0" encoding="utf-8" standalone="no" ?>
> <StyledLayerDescriptor version="1.0.0" xmlns="http://www.opengis.net/sld" 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">
> <Name>dp_generated_sld</Name>
> <Title>test sld for external graphic</Title>
> <Abstract>test</Abstract>
> <NamedLayer>
> <Name>popplace</Name>
> <UserStyle>
> <Name>Cities</Name>
> <Title>Cities</Title>
> <IsDefault>1</IsDefault>
> <FeatureTypeStyle>
> <Rule>
> <PointSymbolizer>
> <Graphic>
> <ExternalGraphic>
> <OnlineResource xlink:type="simple" xlink:href="http://www.oreilly.com/animals/parrot.gif" />
> <Format>image/gif</Format>
> </ExternalGraphic>
> <Size>44</Size>
> </Graphic>
> </PointSymbolizer>
> </Rule>
> </FeatureTypeStyle>
> </UserStyle>
> </NamedLayer>
> </StyledLayerDescriptor>
--
----------------------------------------------------------------
Assefa Yewondwossen
Software Analyst
Email: assefa at dmsolutions.ca
http://www.dmsolutions.ca/
Phone: (613) 565-5056 (ext 14)
Fax: (613) 565-0925
----------------------------------------------------------------
More information about the MapServer-users
mailing list