ranathunga / kml-samples

Automatically exported from code.google.com/p/kml-samples
0 stars 0 forks source link

Polygon Fill broken across anti-meridian ... #227

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
(re: this problem occurs in both the OpenGL and DirectX versions of GE)

What is the expected output or behavior? What do you see instead?

Filling a polygon with a color should fill the entire area of the polygon. 
When filling polygons across the anti-meridian, some polygons don't get 
filled correctly. Attached is an example where polygons aren't getting 
filled properly.

What application versions (if any) are you using?

Google Earth
4.3.7284.3916 (beta)

Which operating systems and browsers are affected?
N/A

Please provide any additional information (code snippets/links) below.

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Document xmlns="http://www.opengis.net/kml/2.2" 
xmlns:ns2="http://www.w3.org/2005/Atom" 
xmlns:ns3="urn:oasis:names:tc:ciq:xsdschema:xAL:2.0">
    <name>FIM Grid Only</name>
    <open>true</open>
    <Style id="g">
        <LineStyle>
            <color>BBBBBBBB</color>
            <width>1.0</width>
        </LineStyle>
        <PolyStyle>
            <color>DDCCFFEE</color>
            <fill>true</fill>
        </PolyStyle>
    </Style>
    <Placemark>
        <name>Voronoi Cells</name>
        <open>false</open>
        <styleUrl>#g</styleUrl>
        <MultiGeometry>
            <Polygon>
                <altitudeMode>absolute</altitudeMode>
                <outerBoundaryIs>
                    <LinearRing>
                        <coordinates>178.195,45.932,65000 
176.913,45.191,65000 177.157,43.815,65000 178.905,43.449,65000 -
179.827,44.168,65000 179.953,45.393,65000 
178.195,45.932,65000</coordinates>
                    </LinearRing>
                </outerBoundaryIs>
            </Polygon>
            <Polygon>
                <altitudeMode>absolute</altitudeMode>
                <outerBoundaryIs>
                    <LinearRing>
                        <coordinates>-178.463,46.233,65000 
179.953,45.393,65000 -179.827,44.168,65000 -178.134,43.598,65000 -
176.575,44.413,65000 -176.723,45.642,65000 -
178.463,46.233,65000</coordinates>
                    </LinearRing>
                </outerBoundaryIs>
            </Polygon>
        </MultiGeometry>
    </Placemark>
</Document>

Original issue reported on code.google.com by evan.pol...@gmail.com on 27 Jan 2009 at 4:55

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by api.roman.public@gmail.com on 3 Feb 2009 at 2:26

GoogleCodeExporter commented 9 years ago
Issue 234 has been merged into this issue.

Original comment by api.roman.public@gmail.com on 13 Feb 2009 at 1:15

GoogleCodeExporter commented 9 years ago
Issue 273 has been merged into this issue.

Original comment by api.roman.public@gmail.com on 30 Jun 2009 at 10:37

GoogleCodeExporter commented 9 years ago
Issue 245 has been merged into this issue.

Original comment by api.roman.public@gmail.com on 1 Jul 2009 at 4:04

GoogleCodeExporter commented 9 years ago
I have hit this issue with both simple and complicated polygons across the 
antimeridian.
Depending on polygon size and complexity, filling is sometimes ok and sometimes 
not.
But when I click on the polygon, GE does not seem to recognize it, but if I 
click 
outside of the polygon, i.e. on either side, it reports recognition of the 
polygon by 
showing an info balloon for the polygon. I guess this is related to this issue.
I attach two kml files:
1. AirspaceVolume_test_180.kml - polygon over antimeridian which shows failure 
when 
clicking but filling is ok.
2. AirspaceVolume_test_000.kml - similar polygon over meridian with perfect 
behavior.

Original comment by heidar.r...@gmail.com on 25 Feb 2010 at 11:21

Attachments:

GoogleCodeExporter commented 9 years ago
Fixed in  5.2.1.1329

Original comment by jli...@google.com on 31 Aug 2010 at 10:05