[Geoserver-devel] [jira] Created: (GEOS-457) Bug with points symbols in SVG

Bug with points symbols in SVG
------------------------------

         Key: GEOS-457
         URL: http://jira.codehaus.org/browse/GEOS-457
     Project: GeoServer
        Type: Bug
  Components: WMS
    Versions: 1.3.0 RC6
Environment: Windows XP SP2
j2sdk1.4.2_08
Adobe SVG Viewer 3.03
    Reporter: Pierre-Emmanuel Balageas
Assigned to: Gabriel Roldán
    Priority: Trivial

I get geoserver in the .exe version and I add a shape datastore for a shapefile which contains points, and a style to represent this datastore. I don't configure WMS in Geoserver so default options are activated (so SVG is in simple mode and not in batik mode).

Here is the bug :
--------------------------------------------------------------------
When you generate an SVG document with points symbols in your datastore, you get in the xml:

<g id="CIRCLES" class="Circles">
<defs>
    <circle id='point' cx='0' cy='0' r='0.2%' fill='blue'/>
</defs>
<use x="109238.9" y="732477.4"/>
</g>

And it does not work with Adobe SVG Viewer 3.03.

After reading http://www.w3.org/TR/SVG/struct.html#UseElement, I think you forgot xlink:href="#point" at the end of the use elements.
It should be like this I think:

<g id="CIRCLES" class="Circles">
<defs>
    <circle id='point' cx='0' cy='0' r='0.2%' fill='blue'/>
</defs>
<use x="109238.9" y="732477.4" xlink:href="#point"/>
</g>

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

     [ http://jira.codehaus.org/browse/GEOS-457?page=all ]
     
Chris Holmes reopened GEOS-457:
-------------------------------

just opening to attach a file

Bug with points symbols in SVG
------------------------------

         Key: GEOS-457
         URL: http://jira.codehaus.org/browse/GEOS-457
     Project: GeoServer
        Type: Bug
  Components: WMS
    Versions: 1.3.0 RC6
Environment: Windows XP SP2
j2sdk1.4.2_08
Adobe SVG Viewer 3.03
    Reporter: Pierre-Emmanuel Balageas
    Assignee: Chris Holmes
    Priority: Trivial
     Fix For: 1.3.0

I get geoserver in the .exe version and I add a shape datastore for a shapefile which contains points, and a style to represent this datastore. I don't configure WMS in Geoserver so default options are activated (so SVG is in simple mode and not in batik mode).
Here is the bug :
--------------------------------------------------------------------
When you generate an SVG document with points symbols in your datastore, you get in the xml:
<g id="CIRCLES" class="Circles">
<defs>
    <circle id='point' cx='0' cy='0' r='0.2%' fill='blue'/>
</defs>
<use x="109238.9" y="732477.4"/>
</g>
And it does not work with Adobe SVG Viewer 3.03.
After reading http://www.w3.org/TR/SVG/struct.html#UseElement, I think you forgot xlink:href="#point" at the end of the use elements.
It should be like this I think:
<g id="CIRCLES" class="Circles">
<defs>
    <circle id='point' cx='0' cy='0' r='0.2%' fill='blue'/>
</defs>
<use x="109238.9" y="732477.4" xlink:href="#point"/>
</g>

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira