Can you supply one of the problematic polygon coordlist? I haven't run into any problems with complex polygons (without holes), so I don't know what could be the problem off hand without trying it.<br><br>-Lennox<br>
<br><div><span class="gmail_quote">On 4/8/07, <b class="gmail_sendername">Bryan Keith</b> <<a href="mailto:bryan@geomega.com">bryan@geomega.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Lennox,<br><br>I got your suggestion to work for polygons that weren't giving me<br>problems, but it did not change anything for the problematic polygons.<br><br>Bryan<br><br>Lennox Antoine wrote:<br>> You are probably experiencing a tesselation problem. Here is a polygon
<br>> template I normally use for filling complex polygons in GE. Note the<br>> tesselation attribute, and how to use it.<br>><br>> <Polygon><br>> <extrude>0</extrude><br>> <altitudeMode>clampToGround</altitudeMode>
<br>> <tessellate>1</tessellate><br>> <outerBoundaryIs><br>> <LinearRing><coordinates></coordinates></LinearRing><br>> </outerBoundaryIs><br>> </Polygon>
<br>><br>> <Style><br>> <LineStyle><br>> <color></color><br>> <width></width><br>> </LineStyle><br>> <PolyStyle><br>> <fill>1</fill>
<br>> <color></color><br>> </PolyStyle><br>> </Style><br>><br>> -Lennox<br>><br>> On 4/8/07, Bryan Keith <<a href="mailto:bryan@geomega.com">bryan@geomega.com</a>> wrote:
<br>>> Hello,<br>>><br>>> I have a shapefile with a single record, a polygon shape. I tried<br>>> attaching the shapefile to this e-mail, but the server didn't like it.<br>>> I'll gladly e-mail the shapefile to anyone who's willing to look into
<br>>> this. It's ~722KB. I can convert the shapefile to kml like this:<br>>><br>>> ogr2ogr -f kml testblm_py.kml testblm_py.shp<br>>><br>>> When I look at the kml in Google Earth, it looks fine. The outline of
<br>>> the shapefile shows up as a red line which, I guess, is the default for<br>>> ogr2ogr kml output. However, I want to see filled polygons so I replace<br>>> part of the "style" line in the kml like this:
<br>>><br>>> cat testblm_py.kml | sed "s/<fill>0<\/fill>/<color>ff37d9f0<\/color>/" ><br>>> testblmfill_py.kml<br>>><br>>> The shaded area does not show up correctly in Google Earth. It shows up
<br>>> as lots of vertical striped areas within the polygon.<br>>><br>>> My actual workflow is a fair bit different from what I've described<br>>> here, but I've tried to boil the problem down to a simple example. I
<br>>> realize, however, that this polygon is not simple. I'm processing over<br>>> 10000 land ownership polygons in Utah, and I'm only having a problem<br>>> with a few of the big, complicated polygons.
<br>>><br>>> I'm wondering if it might be a problem with the line length in the kml,<br>>> but I'm not sure. I'm still doing some testing. Any ideas are<br>>> appreciated.<br>>>
<br>>> Bryan<br>>><br>>> _______________________________________________<br>>> FWTools mailing list<br>>> <a href="mailto:FWTools@lists.maptools.org">FWTools@lists.maptools.org</a><br>>>
<a href="http://lists.maptools.org/mailman/listinfo/fwtools">http://lists.maptools.org/mailman/listinfo/fwtools</a><br>>> <a href="http://fwtools.maptools.org/">http://fwtools.maptools.org/</a><br>>><br>><br>
</blockquote></div><br>