[ka-Map-users] Almost there! Trying to get our data to be used (kind of works)

Clark Endrizzi cendrizzi at gmail.com
Fri Sep 16 16:15:51 EDT 2005


Hi,
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:

<?php
dl('php_mapscript.'.PHP_SHLIB_SUFFIX );
$oMap = ms_newMapObj( 'slc_dtn.map' );
$oImg = $oMap->draw();
$szURL = $oImg->saveWebImage();
echo "<img src=$szURL>";
?>

This was given as an example in the article written by Tyler Mitchell. Here 
is a link: http://dev.naiutah.com/KaMap/MapTest.php

So I'm thinking things are great. However, this is the same map viewed in 
kamap: http://dev.naiutah.com/KaMap/

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.

For reference these are the files I'm using:
Aerial Image: http://dev.naiutah.com/KaMap/utah_data/slc_downtown2.tif
World file: http://dev.naiutah.com/KaMap/utah_data/slc_downtown2.tfw
Map File:
MAP
 NAME slc_downtown
 STATUS ON
 SIZE 400 300
 EXTENT -111.90682770857815 40.759301022038827 -111.86711426725816 
40.772602430228837
 UNITS DD
 IMAGECOLOR 255 255 255
 IMAGETYPE png
 
 WEB
 IMAGEPATH "/tmp/ms_tmp/" 
 IMAGEURL "/ms_tmp/"
 END
 
 
#
# Start of reference map
#
REFERENCE
 IMAGE utah_data/SmallDowntown.png
 EXTENT -111.90682770857815 40.759301022038827 -111.86711426725816 
40.772602430228837
 STATUS ON
 COLOR -1 -1 -1
 OUTLINECOLOR 255 0 0
 SIZE 120 90 
END

 LEGEND
 TRANSPARENT TRUE
 END

 SCALEBAR
 TRANSPARENT TRUE
 END
 
 LAYER
 NAME aerial
 TYPE RASTER
 STATUS ON
 DATA "utah_data/slc_downtown2.tif"
 END

END

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.

Thanks,
-- 
-Clark Endrizzi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/ka-map-users/attachments/20050916/cc140c20/attachment.html


More information about the ka-Map-users mailing list