Hi,<br>
I'm so close to getting this to work that it's painful! Currently
I have two example pages working so I think everything is setup
right. THe only issue I'm having is getting our local, internal
information correctly installed to be used. We have a data sample
that we have created using ArcGIS along with a projection file that
should have the same units as the samples given. Furthermore my
extent information should be correct as well. Using this script,
things display correctly:<br>
<br>
<span style="color: rgb(255, 0, 0);"><?php</span><br style="color: rgb(255, 0, 0);">
<span style="color: rgb(255, 0, 0);">dl('php_mapscript.'.PHP_SHLIB_SUFFIX );</span><br style="color: rgb(255, 0, 0);">
<span style="color: rgb(255, 0, 0);">$oMap = ms_newMapObj( 'slc_dtn.map' );</span><br style="color: rgb(255, 0, 0);">
<span style="color: rgb(255, 0, 0);">$oImg = $oMap->draw();</span><br style="color: rgb(255, 0, 0);">
<span style="color: rgb(255, 0, 0);">$szURL = $oImg->saveWebImage();</span><br style="color: rgb(255, 0, 0);">
<span style="color: rgb(255, 0, 0);">echo "<img src=$szURL>";</span><br style="color: rgb(255, 0, 0);">
<span style="color: rgb(255, 0, 0);">?></span><br clear="all"><br>
This was given as an example in the article written by Tyler
Mitchell. Here is a link:
<a href="http://dev.naiutah.com/KaMap/MapTest.php">http://dev.naiutah.com/KaMap/MapTest.php</a><br>
<br>
So I'm thinking things are great. However, this is the same map viewed in kamap: <a href="http://dev.naiutah.com/KaMap/">http://dev.naiutah.com/KaMap/</a><br>
<br>
As you can see the reference map is wierd. which I just copied
the map from the output show above so I dont' know if that has t be a
certain size. But what is clear is the main part is just
displaying blank images. In the cache it's just a collection of
blank images too so I don't know what's wrong. Furthermore I've
tried to empty the cache many times.<br>
<br>
<span style="text-decoration: underline;">For reference these are the files I'm using:</span><br>
Aerial Image: <a href="http://dev.naiutah.com/KaMap/utah_data/slc_downtown2.tif">http://dev.naiutah.com/KaMap/utah_data/slc_downtown2.tif</a><br>
World file: <a href="http://dev.naiutah.com/KaMap/utah_data/slc_downtown2.tfw">http://dev.naiutah.com/KaMap/utah_data/slc_downtown2.tfw</a><br>
Map File:<br>
<span style="color: rgb(255, 102, 102);">MAP</span><br style="color: rgb(255, 102, 102);">
<span style="color: rgb(255, 102, 102);"> NAME slc_downtown</span><br style="color: rgb(255, 102, 102);">
<span style="color: rgb(255, 102, 102);"> STATUS ON</span><br style="color: rgb(255, 102, 102);">
<span style="color: rgb(255, 102, 102);"> SIZE 400 300</span><br style="color: rgb(255, 102, 102);">
<span style="color: rgb(255, 102, 102);"> EXTENT -111.90682770857815 40.759301022038827 -111.86711426725816 40.772602430228837</span><br style="color: rgb(255, 102, 102);">
<span style="color: rgb(255, 102, 102);"> UNITS DD</span><br style="color: rgb(255, 102, 102);">
<span style="color: rgb(255, 102, 102);"> IMAGECOLOR 255 255 255</span><br style="color: rgb(255, 102, 102);">
<span style="color: rgb(255, 102, 102);"> IMAGETYPE png</span><br style="color: rgb(255, 102, 102);">
<span style="color: rgb(255, 102, 102);"> </span><br style="color: rgb(255, 102, 102);">
<span style="color: rgb(255, 102, 102);"> WEB</span><br style="color: rgb(255, 102, 102);">
<span style="color: rgb(255, 102, 102);"> IMAGEPATH "/tmp/ms_tmp/" </span><br style="color: rgb(255, 102, 102);">
<span style="color: rgb(255, 102, 102);"> IMAGEURL "/ms_tmp/"</span><br style="color: rgb(255, 102, 102);">
<span style="color: rgb(255, 102, 102);"> END</span><br style="color: rgb(255, 102, 102);">
<span style="color: rgb(255, 102, 102);"> </span><br style="color: rgb(255, 102, 102);">
<span style="color: rgb(255, 102, 102);"> </span><br style="color: rgb(255, 102, 102);">
<span style="color: rgb(255, 102, 102);">#</span><br style="color: rgb(255, 102, 102);">
<span style="color: rgb(255, 102, 102);"># Start of reference map</span><br style="color: rgb(255, 102, 102);">
<span style="color: rgb(255, 102, 102);">#</span><br style="color: rgb(255, 102, 102);">
<span style="color: rgb(255, 102, 102);">REFERENCE</span><br style="color: rgb(255, 102, 102);">
<span style="color: rgb(255, 102, 102);"> IMAGE utah_data/SmallDowntown.png</span><br style="color: rgb(255, 102, 102);">
<span style="color: rgb(255, 102, 102);"> EXTENT -111.90682770857815 40.759301022038827 -111.86711426725816 40.772602430228837</span><br style="color: rgb(255, 102, 102);">
<span style="color: rgb(255, 102, 102);"> STATUS ON</span><br style="color: rgb(255, 102, 102);">
<span style="color: rgb(255, 102, 102);"> COLOR -1 -1 -1</span><br style="color: rgb(255, 102, 102);">
<span style="color: rgb(255, 102, 102);"> OUTLINECOLOR 255 0 0</span><br style="color: rgb(255, 102, 102);">
<span style="color: rgb(255, 102, 102);"> SIZE 120 90 </span><br style="color: rgb(255, 102, 102);">
<span style="color: rgb(255, 102, 102);">END</span><br style="color: rgb(255, 102, 102);">
<br style="color: rgb(255, 102, 102);">
<span style="color: rgb(255, 102, 102);"> LEGEND</span><br style="color: rgb(255, 102, 102);">
<span style="color: rgb(255, 102, 102);"> TRANSPARENT TRUE</span><br style="color: rgb(255, 102, 102);">
<span style="color: rgb(255, 102, 102);"> END</span><br style="color: rgb(255, 102, 102);">
<br style="color: rgb(255, 102, 102);">
<span style="color: rgb(255, 102, 102);"> SCALEBAR</span><br style="color: rgb(255, 102, 102);">
<span style="color: rgb(255, 102, 102);"> TRANSPARENT TRUE</span><br style="color: rgb(255, 102, 102);">
<span style="color: rgb(255, 102, 102);"> END</span><br style="color: rgb(255, 102, 102);">
<span style="color: rgb(255, 102, 102);"> </span><br style="color: rgb(255, 102, 102);">
<span style="color: rgb(255, 102, 102);"> LAYER</span><br style="color: rgb(255, 102, 102);">
<span style="color: rgb(255, 102, 102);"> NAME aerial</span><br style="color: rgb(255, 102, 102);">
<span style="color: rgb(255, 102, 102);"> TYPE RASTER</span><br style="color: rgb(255, 102, 102);">
<span style="color: rgb(255, 102, 102);"> STATUS ON</span><br style="color: rgb(255, 102, 102);">
<span style="color: rgb(255, 102, 102);"> DATA "utah_data/slc_downtown2.tif"</span><br style="color: rgb(255, 102, 102);">
<span style="color: rgb(255, 102, 102);"> END</span><br style="color: rgb(255, 102, 102);">
<br style="color: rgb(255, 102, 102);">
<span style="color: rgb(255, 102, 102);">END</span><br>
<br>
Not sure if this is overboard, even if I could know if it's a mapserver
issue so I can go to their IRC channel. I'm just out of answers
and have looked at a lot of stuff but have not been successful in
trouble shooting this.<br>
<br>
Thanks,<br>-- <br>-Clark Endrizzi<br>