Hi list,
I have recently upgraded Geoserver from version 1.3.0 to 1.3.4, and after that I have noticed that External Graphics are no more shown.
Example:
<ExternalGraphic>
<OnlineResource xlink:href="rail7.png" />
<Format>image/png</Format>
</ExternalGraphic>
The SLD is validated, but "rail7.png" is not shown. Instead, Geoserver 1.3.0 shows the External Graphic as expected.
Is it a bug on Geoserver 1.3.4?
Regards,
Eduardo
Please,
Has someone also experienced this?
Any help will be appreciated.
Thanks,
Eduardo
Eduardo Luís Garcia Escovar wrote:
Hi list,
I have recently upgraded Geoserver from version 1.3.0 to 1.3.4, and after that I have noticed that External Graphics are no more shown.
Example:
<ExternalGraphic>
<OnlineResource xlink:href="rail7.png" />
<Format>image/png</Format>
</ExternalGraphic>
The SLD is validated, but "rail7.png" is not shown. Instead, Geoserver 1.3.0 shows the External Graphic as expected.
Is it a bug on Geoserver 1.3.4?
Regards,
Eduardo
Eduardo Luís Garcia Escovar ha scritto:
Please,
Has someone also experienced this?
Any help will be appreciated.
Thanks,
Eduardo
Eduardo Luís Garcia Escovar wrote:
Hi list,
I have recently upgraded Geoserver from version 1.3.0 to 1.3.4, and after that I have noticed that External Graphics are no more shown.
Example:
<ExternalGraphic>
<OnlineResource xlink:href="rail7.png" />
<Format>image/png</Format>
</ExternalGraphic>
The SLD is validated, but "rail7.png" is not shown. Instead, Geoserver 1.3.0 shows the External Graphic as expected.
Hi,
may I ask you were rail7.png is located? I guess the streaming renderer would try to locate the
file in the same folder geoserver is running since no real path is provided.
Cheers
Andrea Aime
Eduardo Luís Garcia Escovar ha scritto:
...
I have recently upgraded Geoserver from version 1.3.0 to 1.3.4, and after that I have noticed that External Graphics are no more shown.
Example:
<ExternalGraphic>
<OnlineResource xlink:href="rail7.png" />
<Format>image/png</Format>
</ExternalGraphic>
The SLD is validated, but "rail7.png" is not shown. Instead, Geoserver 1.3.0 shows the External Graphic as expected.
Hi,
may I ask you were rail7.png is located? I guess the streaming renderer would try to locate the
file in the same folder geoserver is running since no real path is provided.
Cheers
Andrea Aime
Hi Andrea,
rail7.png is located in the same directory that all SLDs are (styles folder).
Relative path (./rail7.png) didn't work so far.
I tried using a complete URL (the question mark gif in the Confluence example) and again, it didn't work. 
It works with Geoserver 1.3.0, instead. So I think it is not a problem in the SLD file (Have Geoserver 1.3.4 changed something in the SLD behavior?).
Frankly, I don't know... Haven't had time to reproduce it, will have a look at it tomorrow if nobody else has (it's lunch time here in Europe
)
Cheers
Andrea
Where is the png file located?
I just tested it with 1.3.4 and it works. I have the png file under my data_dir/styles directory.
Here is the snippit that I use in the SLD:
<PolygonSymbolizer>
<Fill>
<GraphicFill>
<Graphic>
<ExternalGraphic>
<OnlineResource xlink:type="simple" xlink:href="grass_fill.png"/>
<Format>image/png</Format>
</ExternalGraphic>
<Opacity>
<ogc:Literal>1.0</ogc:Literal>
</Opacity>
<Size>
<ogc:Literal>30</ogc:Literal>
</Size>
<Rotation>
<ogc:Literal>0.5</ogc:Literal>
</Rotation>
</Graphic>
</GraphicFill>
</Fill>
<Stroke>
<CssParameter name="stroke">#FF0000</CssParameter>
<CssParameter name="stroke-width">1</CssParameter>
</Stroke>
</PolygonSymbolizer>
Brent Owens
(The Open Planning Project)
Eduardo Luís Garcia Escovar wrote:
Please,
Has someone also experienced this?
Any help will be appreciated.
Thanks,
Eduardo
Eduardo Luís Garcia Escovar wrote:
Hi list,
I have recently upgraded Geoserver from version 1.3.0 to 1.3.4, and after that I have noticed that External Graphics are no more shown.
Example:
<ExternalGraphic>
<OnlineResource xlink:href="rail7.png" />
<Format>image/png</Format>
</ExternalGraphic>
The SLD is validated, but "rail7.png" is not shown. Instead, Geoserver 1.3.0 shows the External Graphic as expected.
Is it a bug on Geoserver 1.3.4?
Regards,
Eduardo
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
Hi Brent,
Like I told Andrea Aime (thanks Andrea), my png file is in the same data_dir/styles directory.
And I have tested all possibilities (external URL, relative path, etc.)
The only difference to your test is that I used a <GraphicStroke> instead of <GraphicFill>. I presume that this is not the cause, but...
It could be something related to the war distribution? I also have Geoserver 1.3.0 war deployed, with <ExternalGraphic> working fine.
I will test this snippet you have just sent to me.
Thanks.
Eduardo Escovar
Brent Owens escreveu:
Where is the png file located?
I just tested it with 1.3.4 and it works. I have the png file under my data_dir/styles directory.
Here is the snippit that I use in the SLD:
<PolygonSymbolizer>
<Fill>
<GraphicFill>
<Graphic>
<ExternalGraphic>
<OnlineResource xlink:type="simple" xlink:href="grass_fill.png"/>
<Format>image/png</Format>
</ExternalGraphic>
<Opacity>
<ogc:Literal>1.0</ogc:Literal>
</Opacity>
<Size>
<ogc:Literal>30</ogc:Literal>
</Size>
<Rotation>
<ogc:Literal>0.5</ogc:Literal>
</Rotation>
</Graphic>
</GraphicFill>
</Fill>
<Stroke>
<CssParameter name="stroke">#FF0000</CssParameter>
<CssParameter name="stroke-width">1</CssParameter>
</Stroke>
</PolygonSymbolizer>
Brent Owens
(The Open Planning Project)
Eduardo Luís Garcia Escovar wrote:
Please,
Has someone also experienced this?
Any help will be appreciated.
Thanks,
Eduardo
Eduardo Luís Garcia Escovar wrote:
Hi list,
I have recently upgraded Geoserver from version 1.3.0 to 1.3.4, and after that I have noticed that External Graphics are no more shown.
Example:
<ExternalGraphic>
<OnlineResource xlink:href="rail7.png" />
<Format>image/png</Format>
</ExternalGraphic>
The SLD is validated, but "rail7.png" is not shown. Instead, Geoserver 1.3.0 shows the External Graphic as expected.
Is it a bug on Geoserver 1.3.4?
Regards,
Eduardo
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users