OS: Windows XP
<br>Oracle Version: 9i
<br>Webserver: Apache from ms4w distribution
<br>
<br>I am not able to successfully configure oraclespatial in mapserver and was wondering if someone could help me out.
<br>
<br>First, I am using Oracle Locator -- not Oracle Spatial. &nbsp;Oracle Locator comes standard in Oracle, but Oracle Spatial is an extension that has to be purchased separately from Oracle. &nbsp;I am assuming the Oracle Locator is sufficient -- correct?
<br>
<br>I am using the Oracle Spatial example that Oracle provides on their web site: otn.oracle.com/products/oracle9i/pdf/OracleSpatial.pdf.
<br>
<br>Geometry is enclosed in a table called 'cola_markets'
<br>
<br>Next, I downloaded the ms4w package and got that running. &nbsp;After that, I downloaded the hobu distribution and replaced the 
<br>C:\ms4w\Apache\cgi-bin directory with the contents from hobu. &nbsp;This should give me the capability to hookup to OracleSpatial and render data. &nbsp;However, all I can generate is a blank image.
<br>
<br>Questions:
<br>1) Can someone point me to what I need to get my data to render
<br>2) Is there a way to trace the code; i.e. generate debug statements in a log file
<br>3) Is there anyone who can give me a simple example, including the sql scripts to create necessary schema objects, the associated map file, and
<br>the associated PHP file.
<br>
<br>This is my current MAP file:
<br>
<br>&nbsp; &nbsp; NAME DEMO
<br>&nbsp; &nbsp; 
<br>&nbsp; &nbsp; DEBUG ON
<br>&nbsp; &nbsp; 
<br>&nbsp; &nbsp; STATUS ON
<br>&nbsp; &nbsp; SIZE 400 300
<br>&nbsp; &nbsp; SYMBOLSET ../etc/symbols.sym
<br>&nbsp; &nbsp; UNITS dd
<br>&nbsp; &nbsp; SHAPEPATH &quot;../data&quot;
<br>&nbsp; &nbsp; IMAGECOLOR 255 255 255
<br>&nbsp; &nbsp; FONTSET ../etc/fonts.txt
<br>&nbsp; &nbsp; 
<br>&nbsp; &nbsp; PROJECTION
<br>&nbsp; &nbsp; &nbsp; &quot;proj=latlong&quot;
<br>&nbsp; &nbsp; &nbsp; &quot;ellps=WGS84&quot;
<br>&nbsp; &nbsp; END
<br>&nbsp; &nbsp; EXTENT -180 -45 180 45
<br>&nbsp; &nbsp; 
<br>&nbsp; &nbsp; WEB
<br>&nbsp; &nbsp; &nbsp; MINSCALE 2000000
<br>&nbsp; &nbsp; &nbsp; MAXSCALE 50000000
<br>&nbsp; &nbsp; &nbsp; IMAGEPATH &quot;/ms4w/tmp/ms_tmp/&quot; 
<br>&nbsp; &nbsp; &nbsp;IMAGEURL &quot;/ms_tmp/&quot;
<br>&nbsp; &nbsp; &nbsp;LOG &quot;c:/ms4w/gmap.log&quot;
<br>&nbsp; &nbsp; END
<br>&nbsp; &nbsp; 
<br>&nbsp; &nbsp; LAYER
<br>&nbsp; &nbsp; &nbsp; DEBUG ON
<br>&nbsp; &nbsp; 
<br>&nbsp; &nbsp; &nbsp; PROJECTION
<br>&nbsp; &nbsp; &nbsp; &nbsp; &quot;proj=latlong&quot;
<br>&nbsp; &nbsp; &nbsp; &nbsp; &quot;ellps=WGS84&quot;
<br>&nbsp; &nbsp; &nbsp; END
<br>&nbsp; &nbsp; &nbsp; &nbsp;
<br>&nbsp; &nbsp; &nbsp; NAME &quot;oilwells&quot;
<br>&nbsp; &nbsp; &nbsp; TYPE point
<br>&nbsp; &nbsp; &nbsp; &nbsp;
<br>&nbsp; &nbsp; &nbsp; CONNECTIONTYPE oraclespatial 
<br>&nbsp; &nbsp; &nbsp; CONNECTION &quot;scott/tiger!@XXXXXXX&quot; 
<br>&nbsp; &nbsp; &nbsp; DATA &quot;shape FROM cola_markets USING SRID 8307&quot; 
<br>&nbsp; &nbsp; &nbsp; &nbsp;
<br>&nbsp; &nbsp; &nbsp; DUMP TRUE
<br>&nbsp; &nbsp; &nbsp; CLASS 
<br>&nbsp; &nbsp; &nbsp; &nbsp; STYLE
<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SIZE 10
<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;COLOR 0 128 128
<br>&nbsp; &nbsp; &nbsp; &nbsp;END
<br>&nbsp; &nbsp; &nbsp; END
<br>&nbsp; &nbsp; END
<br>&nbsp; &nbsp; 
<br>&nbsp; &nbsp; END # Map File
<br>&nbsp;
<br>This is my current PHP file:
<br>&nbsp;
<br>&nbsp; &nbsp; &lt;?php
<br>&nbsp; &nbsp; define(&quot;MAPFILE&quot;, &quot;c:/ms4w/apps/gmap/htdocs/test11.map&quot;);
<br>&nbsp; &nbsp; define(&quot;MODULE&quot;, &quot;php_mapscript_44.dll&quot;);
<br>&nbsp; &nbsp; if(!extension_loaded(&quot;MapScript&quot;)) dl(MODULE);
<br>&nbsp; &nbsp; $oMap = ms_newMapObj(MAPFILE);
<br>&nbsp; &nbsp; $oMap-&gt;setsize(600, 400);
<br>&nbsp; &nbsp; $oMap-&gt;selectoutputformat(&quot;png&quot;);
<br>&nbsp; &nbsp; $oImage = $oMap-&gt;draw();
<br>&nbsp; &nbsp; header(&quot;Content-type: image/gif&quot;);
<br>&nbsp; &nbsp; $url = $oImage-&gt;saveImage(&quot;&quot;);
<br>&nbsp; &nbsp; ?&gt;
<br><hr align="left" width="300">
Sent from the <a href="http://www.nabble.com/Mapserver---User-f1215.html">Mapserver - User</a> forum at Nabble.com:<br>
<a href="http://www.nabble.com/OracleSpatial-t834577.html#a2164331">OracleSpatial</a>