Quote:
There doesn't appear to be anything wrong with your KML. I cannot reproduce your results because I don't have all of your file, and the four coordinates you gave are at altitude 0.
I noticed you're using KML 2.0, not 2.1, and I'm wondering if you are using GE 3.0. You might try upgrading to the latest beta version and trying then.
Also, I'm wondering if you change your angles, do you get different results?
Quote:
You need to either set your elevation values for the coordinates. Try going into the properties of the layer and adjusting the elevation - this will extrude the polygon into a 3D layer. Or you can set the polygon with a "Tessellate" property.
Check out this link: web page
I hope that helps.
Joel joel...@gmail.com />
Quote:
I'm pretty sure this is a bug. I've seen it too with very large and complex polygons. Probably a memory limitation of some sort. Does the size and complexity of the affected polygons seem to be greater than those that work?
Matt
Quote:Quote:
All of the altitude coordinates for all of the polygons are set to zero. This hasn't affected the other polygons that dispay OK. I tried setting all altitudes to value 20 and added
<extrude>1</extrude>
<altitudeMode>relativeToGround</altitudeMode>
This resulted in the fill turning black (instead of green) and being even more patchy (less fill present).
Quote:
I'm pretty sure this is a bug. I've seen it too with very large and complex polygons. Probably a memory limitation of some sort. Does the size and complexity of the affected polygons seem to be greater than those that work?
Matt
The large polygon that won't display is probably the largest most complex in the KML document. The second polygon that won't display, which is further over to the right of the picture on the coastline, isn't large in area but may very well be the second most complex with around 24000 coordinates and 50 innerBoundaries (includes boundaries for some small islands off the coast).
I doubt this is relevant but FYI this project involves taking a MIF data file in the MapInfo (another mapping application) propiertary format and converting it into a KML file. The sample data we have been supplied are the Queensland, Australia federal electoral boundaries. That is what my polygons represent.
I'm pretty sure the reason your polygon is turning black is the nodes in the polygon are 'clockwise' order, rather than anti-clockwise. I know that MapInfo doesn't care what order the nodes are in, but GoogleEarth does. (I can't recall, though, if only the outerBoundary has to be clockwise, or all polygons.)
Contrary to what another poster wrote, you can have more than one inner boundary. I've attached a sample file to demonstrate.
(Note that you need to add an additional line to the innerBoundary so the inner polygons are closed. In the attached file, the first pair of coordinates are duplicated as the last coordinates.)
As for the incomplete drawing, or the 'patchy' drawing, I believe that is due to trying to map a large flat object over a curved earth. To demonstrate, reduce the altitude in the attached file. At ~100m, the patchiness will appear in the large object.
In a thread several months ago a contributor offered a formula for calculating the altitude you would need to insure smooth drawing, based on an object's size.
Hope this helps.
Quote:
Contrary to what another poster wrote, you can have more than one inner boundary. I've attached a sample file to demonstrate.
(Note that you need to add an additional line to the innerBoundary so the inner polygons are closed.
Quote:
As for the incomplete drawing, or the 'patchy' drawing, I believe that is due to trying to map a large flat object over a curved earth. To demonstrate, reduce the altitude in the attached file. At ~100m, the patchiness will appear in the large object.
In a thread several months ago a contributor offered a formula for calculating the altitude you would need to insure smooth drawing, based on an object's size.
Hope this helps.
Quote:
Quote:
Contrary to what another poster wrote, you can have more than one inner boundary. I've attached a sample file to demonstrate.
(Note that you need to add an additional line to the innerBoundary so the inner polygons are closed.
By this do you mean you have to manually add the last coordinate which is a copy of the first? Or are you referring to some line of KML that does this for you?
Quote:
I can't actually see any fill (hence no patchiness) at all in the objects displayed by the KML file you attached. Which is strange seeing as it's defined in the style.
Quote:
<Polygon>
<outerBoundaryIs>
<LinearRing>
<coordinates>...</coordinates>
</LinearRing>
</outerBoundaryIs>
<innerBoundaryIs>
<LinearRing>
<coordinates>1st inner</coordinates>
</LinearRing>
<LinearRing>
<coordinates>2nd inner</coordinates>
</LinearRing>
<LinearRing>
<coordinates>3rd inner</coordinates>
</LinearRing>
</innerBoundaryIs>
</Polygon>
Quote: