<div dir="ltr">A common pattern for creating a SpatialReference is this :<div><pre style="white-space:pre-wrap;overflow:auto hidden;padding:5px;background-color:rgb(238,255,204);color:rgb(51,51,51);line-height:15.6px;border-top:1px solid rgb(170,204,153);border-bottom:1px solid rgb(170,204,153);border-left:none;border-right:none"><span style="color:rgb(0,112,32);font-weight:bold">from</span> <span style="color:rgb(14,132,181);font-weight:bold">osgeo</span> <span style="color:rgb(0,112,32);font-weight:bold">import</span> osr
spatialRef <span style="color:rgb(102,102,102)">=</span> osr<span style="color:rgb(102,102,102)">.</span>SpatialReference()
spatialRef<span style="color:rgb(102,102,102)">.</span>ImportFromEPSG(<span style="color:rgb(32,128,80)">2927</span>) <span style="color:rgb(64,128,144);font-style:italic"># from EPSG</span></pre></div><div>( this example is from the Python Cookbook and is just used to illustrate the pattern)</div><div><br></div><div>But - when I try to do the equivalent in c# using the bindings :</div><div><br></div><div>SpatialReference CRS = new SpatialReference();<br></div><div>CRS.ImportFromMICoordSys(coordsys);</div><div><br></div><div>I get a messageĀ </div><div><br></div><div>error CS1729: 'SpatialReference' does not contain a constructor that takes 0 arguments<br></div><div><br></div><div>Am I missing something? Or is this is a gap in the bindings?</div></div>