<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p></p>
<pre class="default prettyprint prettyprinted" style="margin-top: 0px; margin-bottom: 1em; padding: 12px 8px; border: 0px; font-variant-numeric: inherit; font-variant-east-asian: inherit; font-stretch: inherit; line-height: inherit; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, sans-serif; font-size: 13px; vertical-align: baseline; box-sizing: inherit; width: auto; max-height: 600px; overflow: auto; background-color: var(--black-050); border-radius: 3px; color: rgb(36, 39, 41); overflow-wrap: normal;"><span style="color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 12pt;">Hi list,</span><br></pre>
<p></p>
<div><span style="font-size: 12pt;">I am looking for ways to calculate hollow polygon area.</span><br>
</div>
<div><br>
</div>
<div>Will the following code work?</div>
<div>for feature in layer:</div>
<div>    geom = feature.GetGeometryRef()</div>
<div>    area = geom.GetArea() </div>
<div><br>
</div>
<div> </div>
<div>Thanks,</div>
<div>Shawn</div>
<br>
<div style="color: rgb(0, 0, 0);">
<div><br>
</div>
</div>
</div>
</body>
</html>