<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<META content="MSHTML 6.00.2900.5512" name=GENERATOR>
<STYLE>@font-face {
        font-family: 宋体;
}
@font-face {
        font-family: Verdana;
}
@font-face {
        font-family: @宋体;
}
@page Section1 {size: 595.3pt 841.9pt; margin: 72.0pt 90.0pt 72.0pt 90.0pt; layout-grid: 15.6pt; }
P.MsoNormal {
        TEXT-JUSTIFY: inter-ideograph; FONT-SIZE: 10.5pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; TEXT-ALIGN: justify
}
LI.MsoNormal {
        TEXT-JUSTIFY: inter-ideograph; FONT-SIZE: 10.5pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; TEXT-ALIGN: justify
}
DIV.MsoNormal {
        TEXT-JUSTIFY: inter-ideograph; FONT-SIZE: 10.5pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; TEXT-ALIGN: justify
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.EmailStyle17 {
        FONT-WEIGHT: normal; COLOR: windowtext; FONT-STYLE: normal; FONT-FAMILY: Verdana; TEXT-DECORATION: none; mso-style-type: personal-compose
}
DIV.Section1 {
        page: Section1
}
UNKNOWN {
        FONT-SIZE: 10pt
}
BLOCKQUOTE {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; MARGIN-LEFT: 2em
}
OL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
UL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
</STYLE>
</HEAD>
<BODY style="FONT-SIZE: 10pt; MARGIN: 10px; FONT-FAMILY: verdana">
<DIV><FONT face=Verdana color=#000080 size=2>thanks! but I think that the method 
you mentioned will depress the performance, for example,&nbsp;when using the 
python <FONT 
color=#000000>driver.CreateCopy(source,&nbsp;"geor:user/pwd@db,tab,col",&nbsp;&lt;create&nbsp;options&gt;), 
in fact it will use the gdal_translate function. And the performance 
of&nbsp;PL/SQL will exceed the gdal_translate. so I want to use cx_Oracle, but I 
don't know how to use PL/SQL by cx_Oracle.</FONT></FONT></DIV>
<DIV><FONT face=Verdana color=#000080 size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Verdana color=#000080 size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Verdana color=#c0c0c0 size=2>2009-12-21 </FONT></DIV><FONT 
face=Verdana color=#000080 size=2>
<HR style="WIDTH: 100px" align=left color=#b5c4df SIZE=1>
</FONT>
<DIV><FONT face=Verdana color=#c0c0c0 size=2><SPAN>gispowerfan</SPAN> 
</FONT></DIV>
<HR color=#b5c4df SIZE=1>

<DIV><FONT face=Verdana size=2><STRONG>发件人:</STRONG> Ivan </FONT></DIV>
<DIV><FONT face=Verdana size=2><STRONG>发送时间:</STRONG> 2009-12-21&nbsp; 02:11:53 
</FONT></DIV>
<DIV><FONT face=Verdana size=2><STRONG>收件人:</STRONG> gispowerfan </FONT></DIV>
<DIV><FONT face=Verdana size=2><STRONG>抄送:</STRONG> gdal-dev </FONT></DIV>
<DIV><FONT face=Verdana size=2><STRONG>主题:</STRONG> Re: [gdal-dev] question 
about georaster and python </FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT> </DIV>
<DIV><FONT face=Verdana size=2>
<DIV>gispowerfan&nbsp;wrote:</DIV>
<DIV>&gt;&nbsp;hi&nbsp;list,</DIV>
<DIV>&gt;&nbsp;&nbsp;</DIV>
<DIV>&gt;&nbsp;&nbsp;I&nbsp;have&nbsp;a&nbsp;question&nbsp;about&nbsp;georaster&nbsp;and&nbsp;python,&nbsp;it's&nbsp;maybe&nbsp;not&nbsp;related&nbsp;to&nbsp;</DIV>
<DIV>&gt;&nbsp;GDAL&nbsp;code&nbsp;directly,&nbsp;but&nbsp;I&nbsp;think&nbsp;it&nbsp;is&nbsp;related&nbsp;question.</DIV>
<DIV>&gt;&nbsp;Now&nbsp;I&nbsp;want&nbsp;to&nbsp;connect&nbsp;to&nbsp;ORACLE&nbsp;by&nbsp;cx_Oracle(which&nbsp;is&nbsp;Python&nbsp;interface&nbsp;to&nbsp;ORACLE),&nbsp;I&nbsp;can&nbsp;use&nbsp;cx_Oracle&nbsp;to&nbsp;create&nbsp;table,insert&nbsp;simple&nbsp;data,&nbsp;</DIV>
<DIV>&gt;&nbsp;but&nbsp;can't&nbsp;run&nbsp;the&nbsp;image&nbsp;loader&nbsp;pl/sql,&nbsp;do&nbsp;anyone&nbsp;have&nbsp;any&nbsp;idea?&nbsp;I&nbsp;don't&nbsp;know&nbsp;whether&nbsp;or&nbsp;not&nbsp;that&nbsp;some&nbsp;image&nbsp;loader&nbsp;pl/sql&nbsp;can&nbsp;run&nbsp;by&nbsp;cx_Oracle?&nbsp;</DIV>
<DIV>&gt;&nbsp;I&nbsp;know&nbsp;that&nbsp;I&nbsp;can&nbsp;use&nbsp;gdal&nbsp;python&nbsp;interface&nbsp;to&nbsp;connect&nbsp;Georaster,&nbsp;but&nbsp;I&nbsp;</DIV>
<DIV>&gt;&nbsp;need&nbsp;to&nbsp;test&nbsp;the&nbsp;performance.</DIV>
<DIV>&gt;&nbsp;thanks&nbsp;in&nbsp;advance.</DIV>
<DIV>&gt;&nbsp;&nbsp;</DIV>
<DIV>&gt;&nbsp;2009-12-20</DIV>
<DIV>&gt;&nbsp;------------------------------------------------------------------------</DIV>
<DIV>&gt;&nbsp;gispowerfan</DIV>
<DIV>&gt;&nbsp;</DIV>
<DIV>&gt;&nbsp;</DIV>
<DIV>&gt;&nbsp;------------------------------------------------------------------------</DIV>
<DIV>&gt;&nbsp;</DIV>
<DIV>&gt;&nbsp;_______________________________________________</DIV>
<DIV>&gt;&nbsp;gdal-dev&nbsp;mailing&nbsp;list</DIV>
<DIV>&gt;&nbsp;gdal-dev@lists.osgeo.org</DIV>
<DIV>&gt;&nbsp;http://lists.osgeo.org/mailman/listinfo/gdal-dev</DIV>
<DIV></DIV>
<DIV>Example:</DIV>
<DIV></DIV>
<DIV>&nbsp;&gt;&gt;&gt;&nbsp;from&nbsp;osgeo&nbsp;import&nbsp;gdal</DIV>
<DIV>&nbsp;&gt;&gt;&gt;&nbsp;driver&nbsp;=&nbsp;gdal.GetDriverByName("georaster")</DIV>
<DIV>&nbsp;&gt;&gt;&gt;&nbsp;source&nbsp;=&nbsp;gdal.Open("example.tif")</DIV>
<DIV>&nbsp;&gt;&gt;&gt;&nbsp;target&nbsp;=&nbsp;driver.CreateCopy(source,&nbsp;"geor:user/pwd@db,tab,col",&nbsp;&lt;create&nbsp;options&gt;)</DIV>
<DIV>&nbsp;&gt;&gt;&gt;&nbsp;target&nbsp;=&nbsp;None</DIV>
<DIV>&nbsp;&gt;&gt;&gt;&nbsp;source&nbsp;=&nbsp;None</DIV>
<DIV></DIV>
<DIV>That&nbsp;would&nbsp;load&nbsp;the&nbsp;geotiff&nbsp;file&nbsp;to&nbsp;GeoRaster.</DIV>
<DIV></DIV></FONT></DIV></BODY></HTML>