Hi,
First off I do not know if this is a problem with GeoServer or OpenLayers, so if the problem is with OpenLayers I will post it to their mailing list.
I have set up some custom SLD files (based upon the burg.sld style in 1.6-Beta 4). I also created some very simple SVG files, in which i use circular shapes.
The problem comes when i try to display the features with the custom SVG images in OpenLayers, there appears to be some distortion and the circle end up looking like an oval/egg shape.
Each icon is 20 X 20 in size, and in the SLD tag i have set the size of the graphic to 20.
Is this image distortion an issue with GeoServer ?
Thanks in advance,
Andy
Hi Andy,
I have never played with icons in openlayers but i suggest you do the
following:
Turn request logging up to full. Fire up openlayers so that it makes the
request. Then copy and paste that request into the browser and see how
it renders. That should give you a decent idea if the problem lies on
the client or the server.
-Justin
Andy Dale wrote:
Hi,
First off I do not know if this is a problem with GeoServer or
OpenLayers, so if the problem is with OpenLayers I will post it to their
mailing list.
I have set up some custom SLD files (based upon the burg.sld style in
1.6-Beta 4). I also created some very simple SVG files, in which i use
circular shapes.
The problem comes when i try to display the features with the custom SVG
images in OpenLayers, there appears to be some distortion and the circle
end up looking like an oval/egg shape.
Each icon is 20 X 20 in size, and in the SLD tag i have set the size of
the graphic to 20.
Is this image distortion an issue with GeoServer ?
Thanks in advance,
Andy
!DSPAM:4007,47274cfd240721030819293!
------------------------------------------------------------------------
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
!DSPAM:4007,47274cfd240721030819293!
------------------------------------------------------------------------
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
!DSPAM:4007,47274cfd240721030819293!
--
Justin Deoliveira
The Open Planning Project
http://topp.openplans.org
Andy Dale ha scritto:
Hi,
First off I do not know if this is a problem with GeoServer or OpenLayers, so if the problem is with OpenLayers I will post it to their mailing list.
I have set up some custom SLD files (based upon the burg.sld style in 1.6-Beta 4). I also created some very simple SVG files, in which i use circular shapes.
The problem comes when i try to display the features with the custom SVG images in OpenLayers, there appears to be some distortion and the circle end up looking like an oval/egg shape.
Each icon is 20 X 20 in size, and in the SLD tag i have set the size of the graphic to 20.
Is this image distortion an issue with GeoServer ?
No idea... can you give us the svg and the sld?
Also, is any kind of reprojection at work?
Do you see the same problem in the OL preview?
Cheers
Andrea
Hi,
I think the the error might be server side, I went to the demo request and edited the WMS_GetLegendGraphic request, and the icon returned is the distorted one.
Andrea to as far as i know, i have not re-projection going on (i have not configured anything like that).
I have attached my sld and svg (created in Inkscape)
Cheers,
Andy
On 30/10/2007, Andrea Aime < aaime@anonymised.com> wrote:
Andy Dale ha scritto:
Hi,
First off I do not know if this is a problem with GeoServer or
OpenLayers, so if the problem is with OpenLayers I will post it to their
mailing list.
I have set up some custom SLD files (based upon the burg.sld style in
1.6-Beta 4). I also created some very simple SVG files, in which i use
circular shapes.
The problem comes when i try to display the features with the custom SVG
images in OpenLayers, there appears to be some distortion and the circle
end up looking like an oval/egg shape.
Each icon is 20 X 20 in size, and in the SLD tag i have set the size of
the graphic to 20.
Is this image distortion an issue with GeoServer ?
No idea… can you give us the svg and the sld?
Also, is any kind of reprojection at work?
Do you see the same problem in the OL preview?
Cheers
Andrea
symbol2.sld (1.17 KB)

Hi,
I have thought of maybe one thing that could possibly cause some issues, that is in the OpenLayers WMS layer definition i say the format is image/png but the sld points to a svg image, so could the conversion between the 2 formats cause the distortion ??
Cheers,
Andy
On 30/10/2007, Andy Dale <andy.dale@anonymised.com> wrote:
Hi,
I think the the error might be server side, I went to the demo request and edited the WMS_GetLegendGraphic request, and the icon returned is the distorted one.
Andrea to as far as i know, i have not re-projection going on (i have not configured anything like that).
I have attached my sld and svg (created in Inkscape)
Cheers,
Andy
On 30/10/2007, Andrea Aime < aaime@anonymised.com> wrote:
Andy Dale ha scritto:
Hi,
First off I do not know if this is a problem with GeoServer or
OpenLayers, so if the problem is with OpenLayers I will post it to their
mailing list.
I have set up some custom SLD files (based upon the burg.sld style in
1.6-Beta 4). I also created some very simple SVG files, in which i use
circular shapes.
The problem comes when i try to display the features with the custom SVG
images in OpenLayers, there appears to be some distortion and the circle
end up looking like an oval/egg shape.
Each icon is 20 X 20 in size, and in the SLD tag i have set the size of
the graphic to 20.
Is this image distortion an issue with GeoServer ?
No idea… can you give us the svg and the sld?
Also, is any kind of reprojection at work?
Do you see the same problem in the OL preview?
Cheers
Andrea
Hi,
I have converted the SVG icons into PNG icons and the distortion no longer occurs, so the “problem” lies with the conversion of SVG into PNG, but I am happy to ise PNG for the moment.
Cheers,
Andy
On 30/10/2007, Andy Dale <andy.dale@anonymised.com> wrote:
Hi,
I have thought of maybe one thing that could possibly cause some issues, that is in the OpenLayers WMS layer definition i say the format is image/png but the sld points to a svg image, so could the conversion between the 2 formats cause the distortion ??
Cheers,
Andy
On 30/10/2007, Andy Dale < andy.dale@anonymised.com> wrote:
Hi,
I think the the error might be server side, I went to the demo request and edited the WMS_GetLegendGraphic request, and the icon returned is the distorted one.
Andrea to as far as i know, i have not re-projection going on (i have not configured anything like that).
I have attached my sld and svg (created in Inkscape)
Cheers,
Andy
On 30/10/2007, Andrea Aime < aaime@anonymised.com> wrote:
Andy Dale ha scritto:
Hi,
First off I do not know if this is a problem with GeoServer or
OpenLayers, so if the problem is with OpenLayers I will post it to their
mailing list.
I have set up some custom SLD files (based upon the burg.sld style in
1.6-Beta 4). I also created some very simple SVG files, in which i use
circular shapes.
The problem comes when i try to display the features with the custom SVG
images in OpenLayers, there appears to be some distortion and the circle
end up looking like an oval/egg shape.
Each icon is 20 X 20 in size, and in the SLD tag i have set the size of
the graphic to 20.
Is this image distortion an issue with GeoServer ?
No idea… can you give us the svg and the sld?
Also, is any kind of reprojection at work?
Do you see the same problem in the OL preview?
Cheers
Andrea
Andy Dale ha scritto:
Hi,
I think the the error might be server side, I went to the demo request and edited the WMS_GetLegendGraphic request, and the icon returned is the distorted one.
Andrea to as far as i know, i have not re-projection going on (i have not configured anything like that).
I have attached my sld and svg (created in Inkscape)
Andy,
I've investigated a little and I can confirm the distortion.
It seems to be a bug in the svg handling library we're using, Batik (
the only svg handling library for java I know of btw).
I've opened a bug in geoserver to avoid forgetting this and a bug
in the batik issue tracker:
http://jira.codehaus.org/browse/GEOS-1457
http://issues.apache.org/bugzilla/show_bug.cgi?id=43744
Now Batik developers have the ball
Cheers
Andrea
Andrea Aime ha scritto:
Andy Dale ha scritto:
Hi,
I think the the error might be server side, I went to the demo request and edited the WMS_GetLegendGraphic request, and the icon returned is the distorted one.
Andrea to as far as i know, i have not re-projection going on (i have not configured anything like that).
I have attached my sld and svg (created in Inkscape)
Andy,
I've investigated a little and I can confirm the distortion.
It seems to be a bug in the svg handling library we're using, Batik (
the only svg handling library for java I know of btw).
I've opened a bug in geoserver to avoid forgetting this and a bug
in the batik issue tracker:
http://jira.codehaus.org/browse/GEOS-1457
http://issues.apache.org/bugzilla/show_bug.cgi?id=43744
So, according to the Batik developers this is not a bug. Unless
you specify that the graphics has to be rendered with high
precision using an svg attribute they are free to take a fast
path and render it like they do.
Adding that attribute does indeed fix the rendering issue.
See:
http://issues.apache.org/bugzilla/show_bug.cgi?id=43744
Cheers
Andrea