Hi list, <br clear="all">I was recently trying to use OGRSpatialReference::GetAuthorityCode from the python API and I&#39;ve found that it worked on WGS 84 UTM but not on SIRGAS 2000 UTM.<br>Sirgas: <a href="http://spatialreference.org/ref/epsg/31974">http://spatialreference.org/ref/epsg/31974</a><br>
WGS: <a href="http://spatialreference.org/ref/epsg/32720">http://spatialreference.org/ref/epsg/32720</a><br>I&#39;ve taken the .prj description from both sites and used as the wkt. Ok, I&#39;ve found that the wkt is different when compared to the prj file on the epsg site. Still, when recognizing a shapefile what I find is the .prj file.<br>
Using the code bellow OSR returns the wgs 84&#39;s EPSG fine but doesn&#39;t return SIRGAS&#39;.<br>Anyone know why?<br><br>import osr<br>wgssr=osr.SpatialReference()<br>wgssr.ImportFromWkt(&quot;&quot;&quot;PROJCS[&quot;WGS_1984_UTM_Zone_20S&quot;,GEOGCS[&quot;GCS_WGS_1984&quot;,DATUM[&quot;D_WGS_1984&quot;,SPHEROID[&quot;WGS_1984&quot;,6378137,298.257223563]],PRIMEM[&quot;Greenwich&quot;,0],UNIT[&quot;Degree&quot;,0.017453292519943295]],PROJECTION[&quot;Transverse_Mercator&quot;],PARAMETER[&quot;latitude_of_origin&quot;,0],PARAMETER[&quot;central_meridian&quot;,-63],PARAMETER[&quot;scale_factor&quot;,0.9996],PARAMETER[&quot;false_easting&quot;,500000],PARAMETER[&quot;false_northing&quot;,10000000],UNIT[&quot;Meter&quot;,1]]&quot;&quot;&quot;)<br>
wgssr.AutoIdentifyEPSG()<br>print wgssr.GetAuthorityCode(None)<br><br>sirgassr=osr.SpatialReference()<br>sirgassr.ImportFromWkt(&quot;&quot;&quot;PROJCS[&quot;SIRGAS 2000 / UTM zone 20N&quot;,GEOGCS[&quot;SIRGAS 2000&quot;,DATUM[&quot;D_SIRGAS_2000&quot;,SPHEROID[&quot;GRS_1980&quot;,6378137,298.257222101]],PRIMEM[&quot;Greenwich&quot;,0],UNIT[&quot;Degree&quot;,0.017453292519943295]],PROJECTION[&quot;Transverse_Mercator&quot;],PARAMETER[&quot;latitude_of_origin&quot;,0],PARAMETER[&quot;central_meridian&quot;,-63],PARAMETER[&quot;scale_factor&quot;,0.9996],PARAMETER[&quot;false_easting&quot;,500000],PARAMETER[&quot;false_northing&quot;,0],UNIT[&quot;Meter&quot;,1]]&quot;&quot;&quot;)<br>
sirgassr.AutoIdentifyEPSG()<br>print sirgassr.GetAuthorityCode(None)<br><br>-- <br>Maurício de Paulo<br>