Hi,

 

I read in polygon shape file and write the KML for GE using the writeOGR
function

 

tmpshpPoly<-readShapePoly("tmpshp",IDvar="AKUCU83_",
proj4string=CRS("+proj=longlat"))

writeOGR(tmpshpPoly, "test2.kml", "Location","KML")

 

In the test2.kml file I'd also like to include a name for each polygon and
some polygon shading.  I can edit the shape file and place or edit the tags
but for this to work as we desire, I'd want to write the <name> tag with the
tmpshpPoly$loc field.  I'd also like to color the polygon with a
categorization of the tmpshpPoly$nAnimals field.  The categorization is
easy.

 

I am unable to write the <name> tag within the Placemark tag for each
polygon.  I am also unable to alter the
<PolyStyle><fill>0</fill></PolyStyle> fill color to an appropriate color.
If you have suggestions I would be most appreciative.

 

Thank you,

 

Bob Sutherland 


        [[alternative HTML version deleted]]

_______________________________________________
R-sig-Geo mailing list
[email protected]
https://stat.ethz.ch/mailman/listinfo/r-sig-geo

Reply via email to