<div class="gmail_quote">On Thu, Sep 29, 2011 at 7:21 PM,  <span dir="ltr">&lt;<a href="mailto:Tony.Na@sybase.com">Tony.Na@sybase.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
Hi fellow GDAL/OGR developers,<br>
I&#39;m currently developing an OGR data provider module for Sybase SQLAnywhere<br>
database, which recently supports spatial features in it&#39;s version 12<br>
release. I have a question regarding the best way to evaluate the<br>
equivalence between two Spatial Reference Systems.  It seems to me that<br>
when I use ogr2ogr to translate a SQLAnywhere Layer to a shapefile, the<br>
shapefile data provider calls the morphToESRI() and morphFromESRI<br>
functions, which strips out all Authority nodes from my original SRS WKT.<br>
For example, for the SRS “NAD27 / Alaska Albers”, the WKT representation<br>
before and after the morph follows:<br>
<br>
<br>
Before morph:<br>
<br>
<br>
PROJCS[&quot;Albers Equal Area&quot;,<br>
      GEOGCS[&quot;NAD27&quot;,<br>
            DATUM[&quot;North_American_Datum_1927&quot;,<br>
                  SPHEROID[&quot;Clarke 1866&quot;, 6378206.4, 294.978698213898,<br>
                        AUTHORITY[&quot;EPSG&quot;,&quot;7008&quot;]],<br>
                  TOWGS84[-3,142,183,0,0,0,0],<br>
                  AUTHORITY[&quot;EPSG&quot;,&quot;6267&quot;]],<br>
            PRIMEM[&quot;Greenwich&quot;,0,AUTHORITY[&quot;EPSG&quot;,&quot;8901&quot;]],<br>
            UNIT[&quot;degree&quot;,0.0174532925199433,AUTHORITY[&quot;EPSG&quot;,&quot;9108&quot;]],<br>
            AUTHORITY[&quot;EPSG&quot;,&quot;4267&quot;]],<br>
      PROJECTION[&quot;Albers_Conic_Equal_Area&quot;],<br>
      PARAMETER[&quot;standard_parallel_1&quot;,55],<br>
      PARAMETER[&quot;standard_parallel_2&quot;,65],<br>
      PARAMETER[&quot;latitude_of_center&quot;,50],<br>
      PARAMETER[&quot;longitude_of_center&quot;,-154],<br>
      PARAMETER[&quot;false_easting&quot;,0],<br>
      PARAMETER[&quot;false_northing&quot;,0],<br>
      UNIT[&quot;us_survey_feet&quot;,0.3048006096012192],<br>
      AUTHORITY[&quot;EPSG&quot;,&quot;2964&quot;]]<br>
<br>
After morph:<br>
PROJCS[&quot;Albers_Equal_Area&quot;,<br>
      GEOGCS[&quot;GCS_North_American_1927&quot;,<br>
            DATUM[&quot;D_North_American_1927&quot;,<br>
                  SPHEROID[&quot;Clarke_1866&quot;,6378206.4,294.9786982]],<br>
            PRIMEM[&quot;Greenwich&quot;,0],<br>
            UNIT[&quot;Degree&quot;,0.017453292519943295]],<br>
      PROJECTION[&quot;Albers&quot;],<br>
      PARAMETER[&quot;standard_parallel_1&quot;,55],<br>
      PARAMETER[&quot;standard_parallel_2&quot;,65],<br>
      PARAMETER[&quot;latitude_of_origin&quot;,50],<br>
      PARAMETER[&quot;central_meridian&quot;,-154],<br>
      PARAMETER[&quot;false_easting&quot;,0],<br>
      PARAMETER[&quot;false_northing&quot;,0]<br>
      ,UNIT[&quot;Foot_US&quot;,0.30480060960121924]]<br></blockquote><div><br></div><div><a href="http://prj2epsg.org">prj2epsg.org</a> is able to tell you that the above is EPSG:2964, try it out.</div><div>It is however based on the GeoTools referencing subsytem, not OGR</div>
<div><br></div><div>Cheers</div><div>Andrea</div><div> </div></div><div><br></div>-- <br>-------------------------------------------------------<br>Ing. Andrea Aime<br>GeoSolutions S.A.S.<br>Tech lead<br><br>Via Poggio alle Viti 1187<br>
55054  Massarosa (LU)<br>Italy<br><br>phone: +39 0584 962313<br>fax:      +39 0584 962313<br><br><a href="http://www.geo-solutions.it" target="_blank">http://www.geo-solutions.it</a><br><a href="http://geo-solutions.blogspot.com/" target="_blank">http://geo-solutions.blogspot.com/</a><br>
<a href="http://www.youtube.com/user/GeoSolutionsIT" target="_blank">http://www.youtube.com/user/GeoSolutionsIT</a><br><a href="http://www.linkedin.com/in/andreaaime" target="_blank">http://www.linkedin.com/in/andreaaime</a><br>
<a href="http://twitter.com/geowolf" target="_blank">http://twitter.com/geowolf</a><br><br>-------------------------------------------------------<br>