Hi list.<br><br>Im trying to configure mapserver with Oracle Spatial or OCI connection<br>This is my layer:<br><br>LAYER<br>&nbsp;&nbsp;&nbsp; NAME CARRETERAS<br>&nbsp;&nbsp;&nbsp; TYPE LINE<br>&nbsp;&nbsp;&nbsp; STATUS ON <br>&nbsp;&nbsp;&nbsp; CONNECTIONTYPE OGR<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CONNECTION &quot;
OCI:sde/password@SDE&quot;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; DATA &quot;SDE.RED_CARRETERAS&quot;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; DUMP TRUE<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; DEBUG ON<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; PROCESSING &quot;CLOSE_CONNECTION=DEFER&quot;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; TRANSPARENCY 0<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; PROJECTION<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &quot;init=epsg:23030&quot;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; END<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CLASS<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; STYLE<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; COLOR 0 0 0<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; END<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; NAME &#39;Carreteras&#39;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; END<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; METADATA<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &quot;wms_title&quot; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;Red Carreteras&quot;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &quot;wms_keywordlist&quot; &nbsp;&nbsp;&nbsp; &quot;WMS Carreteras&quot;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &quot;wms_srs&quot; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &quot;epsg:23030&quot;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &quot;wms_extent&quot; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &quot;164590 4062740 579080 4266350&quot;
<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; END<br>END<br><br><br>Mapserver allways send to me a blank image.<br>I&#39;d use shp2img , and allways send me a blank image, with this command:<br><br>C:\ms4w-v5\tools\mapserv&gt;shp2img.exe -m c:\ms4w-v5\maps\map\wms.map -i png -o C:\test.png -all_debug 9 -l CARRETERAS
<br>msDrawMap(): Layer 1 (CARRETERAS), 0.000s<br>msDrawMap(): Drawing Label Cache, 0.000s<br>msDrawMap() total time: 0.000s<br>msFreeMap(): freeing map at 0144B390.<br><br>and made some test for testing oracle connection with og2info, and works correctly, like:
<br><br>C:\ms4w-v5\tools\mapserv&gt;ogrinfo.exe OCI:sde/password@SDE:sde.RED_CARRETERAS -SO<br>INFO: Open of `OCI:sde/sde@SDE:sde.RED_CARRETERAS&#39;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; using driver `OCI&#39; successful.<br>1: sde.RED_CARRETERAS<br>
<br>if i use the command with -al option, it sends to me all information allocated in this layer.<br><br>Is the problem related with system enviroment?<br><br>In httd.conf:<br><br>SetEnv PATH &quot;C:/Oracle/oracle10g/BIN&quot;
<br>SetEnv TNS_ADMIN &quot;C:/Oracle/oracle10g/NETWORK/ADMIN&quot;<br>SetEnv ORACLE_SID SDE<br>SetEnv ORACLE_BASE &quot;C:/Oracle/oracle10g&quot;<br>SetEnv ORACLE_HOME &quot;C:/Oracle/oracle10g&quot;<br>SetEnv LD_LIBRARY_PATH &quot;C:\Oracle\oracle10g\LIB&quot;
<br><br>and de tnsadmin.ora file<br><br>SDE= <br>&nbsp; (DESCRIPTION =<br>&nbsp;&nbsp;&nbsp; (ADDRESS_LIST =<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (ADDRESS = (PROTOCOL = TCP)(HOST = <a href="http://172.19.133.19">172.19.133.19</a>)(PORT = 1521))<br>&nbsp;&nbsp;&nbsp; )<br>&nbsp;&nbsp;&nbsp; (CONNECT_DATA =
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (SERVICE_NAME = sde)<br>&nbsp;&nbsp;&nbsp; )<br>&nbsp; )<br><br>Windows 2003 System Enviroment:<br><br>Path=\ms4w\Apache\cgi-bin;\ms4w\tools\gdal-ogr;\ms4w\tools\mapserv;\ms4w\tools\shapelib;\ms4w\proj\bin;\ms4w\tools\shp2tile;\ms4w\tools\shpdiff;\ms4w\tools\avce00;C:\oracle\Oracle10g\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem
<br>PROJ_LIB=\ms4w-v5\proj\nad<br>ORACLE_HOME=C:\oracle\Oracle10g<br><br>In ms_erro.txt file nothing is registered.<br><br>Thxs<br><br><br><br><br><br><br><br>