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

Clark Endrizzi cendrizzi at gmail.com
Mon Sep 19 10:46:08 EDT 2005


Where is the scale? I know there is extent and the world file but where do I 
specify the scale? Our mapper doesn't seem to get it either but I'm sure 
it's just because we're new to this.

Thanks,
Clark

On 9/17/05, Brent Pedersen <bpederse at gmail.com> wrote:
> 
> your scale has the same values for the world map and for your utah. that's 
> probably not what you want.
> -brent
> 
> On 9/17/05, Clark Endrizzi <cendrizzi at gmail.com> wrote:
> > 
> > Ok, I changed that and emptied the cache but it is still loading blank 
> > tiles :(
> > 
> > Anything else I could possibly do? I'm very anxious to get this to work.
> > 
> > Thanks for your help,
> > Clark
> > 
> > On 9/16/05, Matthew Perry < perrygeo at gmail.com> wrote:
> > > 
> > > Clark,
> > > 
> > > Try setting the layer status to DEFAULT instead of ON.
> > > 
> > > matt
> > > 
> > > On 9/16/05, Clark Endrizzi < cendrizzi at gmail.com> wrote:
> > > 
> > > > 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
> > > > 
> > > > _______________________________________________
> > > > ka-Map-users mailing list
> > > > ka-Map-users at lists.maptools.org 
> > > > http://lists.maptools.org/mailman/listinfo/ka-map-users
> > > > 
> > > > 
> > > > 
> > > 
> > > 
> > > -- 
> > > Matt Perry
> > > perrygeo at gmail.com
> > > http://www.perrygeo.net 
> > 
> > 
> > 
> > 
> > -- 
> > -Clark Endrizzi
> > 
> > _______________________________________________
> > ka-Map-users mailing list
> > ka-Map-users at lists.maptools.org 
> > http://lists.maptools.org/mailman/listinfo/ka-map-users
> > 
> > 
> > 
> 


-- 
-Clark Endrizzi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/ka-map-users/attachments/20050919/5849d339/attachment.html


More information about the ka-Map-users mailing list