<div dir="ltr"><div>The following program successfully creates a shape file I am requiring.</div><div><br></div><div>from osgeo import ogr</div><div>from osgeo import osr</div><div><br></div><div>def myRing(coords):</div><div>    ring = ogr.Geometry(ogr.wkbLinearRing)</div><div>    for xy in coords:</div><div>        ring.AddPoint(xy[0],xy[1])</div><div>    return ring</div><div><br></div><div>coords = [(-23.378906,68.974164), (-23.378906,34.307144), (31.464844,34.307144), (31.464844,68.974164), (-23.378906,68.974164)] </div><div><br></div><div>ring = myRing(coords)</div><div>poly = ogr.Geometry(ogr.wkbPolygon)</div><div>poly.AddGeometry(ring)</div><div><br></div><div>outDriver = ogr.GetDriverByName('ESRI Shapefile')</div><div>data_source = outDriver.CreateDataSource('test.shp')</div><div>srs = osr.SpatialReference()</div><div>srs.ImportFromEPSG(4326)</div><div>layer = data_source.CreateLayer('test.shp', srs, ogr.wkbPolygon)</div><div><br></div><div>feature = ogr.Feature(layer.GetLayerDefn())</div><div>feature.SetGeometry(poly)</div><div>layer.CreateFeature(feature)</div><div><br></div><div>feature.Destroy</div><div>data_source.Destroy()</div><div><br></div><div><div>However, I did not know how to do the followings:</div><div><br></div><div>-set the color of outer ring as blue, </div><div>-do not fill the polygen</div><div>-name the feature as 'test'</div></div><div><br></div><div>I hope someone can help me.</div><div><br></div><div>Thanks in the advance.</div><div>Beau</div></div>