Problem with KML when using in OpenLayers
-----------------------------------------

                 Key: GEOS-2186
                 URL: http://jira.codehaus.org/browse/GEOS-2186
             Project: GeoServer
          Issue Type: Bug
          Components: Google Earth KML Output
    Affects Versions: 1.6.2
         Environment: Debian, Glassfish
            Reporter: Laurent Pierre
            Assignee: Andrea Aime
         Attachments: agences.kml



I try to use KML produced by Geoserver (1.6.4) in OpenLayers (2.6) but the XML 
generated is not accepted (silently alas). I checked the file and I eventually 
found 2 'mistakes' in the KML.  Here's 2 fragments where the first (corrected) 
works while the second (directly from Geoserver) fails :


<kml xmlns="http://earth.google.com/kml/2.2";>
   <Document>
      <name>edfgeo:clientassoc</name>
      <Style id="GeoServerStyleclientassoc.nfm--730056c2_11c0891a30b_-21f4">
         <IconStyle>
            <color>ff33ffff</color>
            <colorMode>normal</colorMode>
            <Icon>
               <href>http://maps.google.com/mapfiles/kml/pal4/icon25.png</href>
            </Icon>
         </IconStyle>
                ...
               
and

<?xml version="1.0" encoding="UTF-8"?>
<kml >
   <Document>
      <name>edfgeo:clientassoc</name>
      <Style id="GeoServerStyleclientassoc.nfm--730056c2_11c0891a30b_-21f4">
          <IconStyle>
            <Icon/>
         </IconStyle>
         <IconStyle>
            <color>ff33ffff</color>
            <colorMode>normal</colorMode>
            <Icon>
               <href>http://maps.google.com/mapfiles/kml/pal4/icon25.png</href>
            </Icon>
         </IconStyle>
                 ...
                 
In the second fragment the default namespace is missing and a 'void' IconStyle 
appears. 

The style provided seems irrelevant and I made several tests with different 
generated KML.

-- 
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

        

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to