<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.3790.1830" name=GENERATOR>
<STYLE>
<!--
 /* Font Definitions */
 @font-face
        {font-family:宋体;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"\@宋体";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        text-align:justify;
        text-justify:inter-ideograph;
        font-size:10.5pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:Verdana;
        color:windowtext;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
 /* Page Definitions */
 @page Section1
        {size:595.3pt 841.9pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;
        layout-grid:15.6pt;}
div.Section1
        {page:Section1;}
-->
</STYLE>
</HEAD>
<BODY>
<DIV><FONT face=Verdana color=#0000ff size=2>Hi,<FONT 
color=#000000>Frank:</FONT></FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Verdana size=2>Thanks for your reply.I will modify my code 
follow your advice.</FONT></DIV>
<DIV><FONT face=Verdana size=2>And i have another question:</FONT></DIV>
<DIV><FONT face=Verdana size=2>Is under the $GDAL_DATA$ directory have a file to 
describe which projection hava how many parameter as well as their 
name,function. I want give a common custome projection UI,if have the file i 
mention above it can make me dynamicly control the Form style. If don't have 
this file,should i control the UI according the projection various by enumerate 
their parameter ? </FONT></DIV>
<DIV>hope your next reply.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Best&nbsp;regards,</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Verdana size=2></FONT>&nbsp;</DIV>
<DIV align=left>
<DIV align=left><FONT face=Verdana size=2>
<HR style="WIDTH: 122px; HEIGHT: 2px" SIZE=2>
</FONT></DIV><FONT color=#c0c0c0>
<DIV><FONT face=Verdana size=2>yunjm</FONT></DIV>
<DIV><FONT face=Verdana size=2>2007-03-16</FONT></FONT></DIV></DIV>
<DIV><FONT face=Verdana size=2>
<HR>
</FONT></DIV>
<DIV><FONT face=Verdana><FONT size=2><STRONG>发件人:</STRONG> Frank 
Warmerdam</FONT></FONT></DIV>
<DIV><FONT face=Verdana><FONT size=2><STRONG>发送时间:</STRONG> 
2007-03-15&nbsp;23:48:13</FONT></FONT></DIV>
<DIV><FONT face=Verdana><FONT size=2><STRONG>收件人:</STRONG> 
贠建明</FONT></FONT></DIV>
<DIV><FONT face=Verdana><FONT size=2><STRONG>抄送:</STRONG> 
gdal-dev</FONT></FONT></DIV>
<DIV><FONT face=Verdana><FONT size=2><STRONG>主题:</STRONG> Re: [Gdal-dev] How to 
custom my "Projected Coordinate Systems" inOGR</FONT></FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Verdana size=2>
<DIV>贠建明&nbsp;wrote:</DIV>
<DIV>&gt;&nbsp;&nbsp;</DIV>
<DIV>&gt;&nbsp;I&nbsp;use&nbsp;the&nbsp;class&nbsp;in&nbsp;ogr_spatialref.h&nbsp;to&nbsp;build&nbsp;a&nbsp;system&nbsp;with&nbsp;graphic&nbsp;UI&nbsp;to&nbsp;</DIV>
<DIV>&gt;&nbsp;fulfill&nbsp;corrdinate&nbsp;system&nbsp;transformtion,</DIV>
<DIV>&gt;&nbsp;But&nbsp;i&nbsp;find&nbsp;the&nbsp;*.csv&nbsp;files&nbsp;in&nbsp;$GDAL_DATA$&nbsp;is&nbsp;hard&nbsp;to&nbsp;extend&nbsp;or&nbsp;to&nbsp;add&nbsp;a&nbsp;</DIV>
<DIV>&gt;&nbsp;new&nbsp;customed&nbsp;coordinate&nbsp;system&nbsp;to&nbsp;it.</DIV>
<DIV>&gt;&nbsp;I&nbsp;know&nbsp;that&nbsp;i&nbsp;can&nbsp;call&nbsp;statements&nbsp;like&nbsp;following&nbsp;to&nbsp;&nbsp;complete&nbsp;this&nbsp;</DIV>
<DIV>&gt;&nbsp;task,but&nbsp;how&nbsp;do&nbsp;i&nbsp;store&nbsp;this&nbsp;configuration&nbsp;to&nbsp;these&nbsp;csv&nbsp;files?then&nbsp;next&nbsp;</DIV>
<DIV>&gt;&nbsp;time&nbsp;user&nbsp;can&nbsp;only&nbsp;call&nbsp;it&nbsp;by&nbsp;ImportFromXXX()&nbsp;function.</DIV>
<DIV>&gt;&nbsp;&nbsp;</DIV>
<DIV>&gt;&nbsp;-------------</DIV>
<DIV>&gt;&nbsp;&nbsp;oTargetSRS.SetProjCS(&nbsp;"XIAN80&nbsp;Albers"&nbsp;);</DIV>
<DIV>&gt;&nbsp;&nbsp;oTargetSRS.SetWellKnownGeogCS("EPSG:4610");</DIV>
<DIV>&gt;&nbsp;&nbsp;oTargetSRS.SetACEA(27,45,0,105,0,0);</DIV>
<DIV>&gt;&nbsp;-------------</DIV>
<DIV>&nbsp;</DIV>
<DIV>Hi,</DIV>
<DIV>&nbsp;</DIV>
<DIV>The&nbsp;.csv&nbsp;files&nbsp;are&nbsp;primarily&nbsp;intended&nbsp;for&nbsp;EPSG&nbsp;coordinate&nbsp;systems,</DIV>
<DIV>so&nbsp;it&nbsp;isn't&nbsp;really&nbsp;appropriate&nbsp;to&nbsp;extend&nbsp;them&nbsp;manually.</DIV>
<DIV>&nbsp;</DIV>
<DIV>But&nbsp;you&nbsp;can&nbsp;add&nbsp;your&nbsp;own&nbsp;custom&nbsp;dictionaries&nbsp;in&nbsp;a&nbsp;manner&nbsp;similar</DIV>
<DIV>to&nbsp;gdal/data/cubewerx_extra.wkt.&nbsp;&nbsp;These&nbsp;dictionary&nbsp;files&nbsp;consist</DIV>
<DIV>of&nbsp;lines&nbsp;with&nbsp;a&nbsp;short&nbsp;name,&nbsp;a&nbsp;comma&nbsp;and&nbsp;then&nbsp;the&nbsp;WKT&nbsp;definition&nbsp;of</DIV>
<DIV>the&nbsp;coordinate&nbsp;system.</DIV>
<DIV>&nbsp;</DIV>
<DIV>You&nbsp;can&nbsp;reference&nbsp;such&nbsp;a&nbsp;definition&nbsp;from&nbsp;SetFromUserInput()&nbsp;and</DIV>
<DIV>programs&nbsp;that&nbsp;use&nbsp;that&nbsp;function&nbsp;(such&nbsp;as&nbsp;s_srs,&nbsp;a_srs,&nbsp;t_srs</DIV>
<DIV>for&nbsp;gdal_translate,&nbsp;ogr2ogr&nbsp;and&nbsp;gdalwarp)&nbsp;using&nbsp;the&nbsp;form:</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;gdal_translate&nbsp;&nbsp;-a_srs&nbsp;DICT:cubewerx_extra.wkt,41001</DIV>
<DIV>&nbsp;</DIV>
<DIV>Programmatically&nbsp;you&nbsp;can&nbsp;use&nbsp;the&nbsp;importFromDict()&nbsp;method&nbsp;on</DIV>
<DIV>the&nbsp;OGRSpatialReference.</DIV>
<DIV>&nbsp;</DIV>
<DIV>To&nbsp;get&nbsp;the&nbsp;WKT&nbsp;from&nbsp;an&nbsp;OGRSpatialReference,&nbsp;for&nbsp;appending&nbsp;to&nbsp;the</DIV>
<DIV>dictionary&nbsp;file,&nbsp;you&nbsp;can&nbsp;use&nbsp;the&nbsp;exportToWkt()&nbsp;method.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Best&nbsp;regards,</DIV>
<DIV>--&nbsp;</DIV>
<DIV>---------------------------------------+--------------------------------------</DIV>
<DIV>I&nbsp;set&nbsp;the&nbsp;clouds&nbsp;in&nbsp;motion&nbsp;-&nbsp;turn&nbsp;up&nbsp;&nbsp;&nbsp;|&nbsp;Frank&nbsp;Warmerdam,&nbsp;warmerdam@pobox.com</DIV>
<DIV>light&nbsp;and&nbsp;sound&nbsp;-&nbsp;activate&nbsp;the&nbsp;windows&nbsp;|&nbsp;<A 
href="http://pobox.com/~warmerdam">http://pobox.com/~warmerdam</A></DIV>
<DIV>and&nbsp;watch&nbsp;the&nbsp;world&nbsp;go&nbsp;round&nbsp;-&nbsp;Rush&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;President&nbsp;OSGeo,&nbsp;<A 
href="http://osgeo.org">http://osgeo.org</A></DIV>
<DIV>&nbsp;</DIV></FONT></DIV></BODY></HTML>