[Mapserver-users] Easy mapfile question

Martin, Daniel A Daniel.A.Martin at erac.com
Thu Jan 22 11:42:44 PST 2004


Whoops,
<quote>Right, MINSCALE and MAXSCALE control a scale range at which a
layer is presented in the layer.</quote> Should read "in the map."

Sorry!
Dan

> -----Original Message-----
> From: mapserver-users-admin at lists.gis.umn.edu 
> [mailto:mapserver-users-admin at lists.gis.umn.edu] On Behalf Of 
> Martin, Daniel A
> Sent: Thursday, January 22, 2004 1:15 PM
> To: Jim Buzbee; mapserver-users at lists.gis.umn.edu
> Subject: RE: [Mapserver-users] Easy mapfile question
> 
> 
> Right, MINSCALE and MAXSCALE control a scale range at which a 
> layer is presented in the layer.  
> 
> I find the easiest way to determine your MINSCALE/MAXSCALE 
> settings is to place a [scale] tag in your HTML client.  
> I even keep an HTML commented scale that I can see by doing 
> "View Source" in all my map clients:
> <!-- scale = 1:[scale] -->
> Then, zoom the client to the scale you would like to set as a 
> boundary, and record the value of that [scale] tag.  You 
> don't even need to understand the units involved (though that 
> is set by the UNITS item in your MAP object).
> 
> One of my favorite techniques is have two layers by the same 
> name (one presenting more detail than the other) where the 
> MAXSCALE for one is the MINSCALE for the other.  As the 
> client crosses this threshold they are presented with the 
> more detailed layer.  For instance, showing a highway layer, 
> and then switching to a full street map when zoomed close.
> 
> -Dan
> 
> > -----Original Message-----
> > From: mapserver-users-admin at lists.gis.umn.edu
> > [mailto:mapserver-users-admin at lists.gis.umn.edu] On Behalf Of 
> > Jim Buzbee
> > Sent: Thursday, January 22, 2004 12:17 PM
> > To: mapserver-users at lists.gis.umn.edu
> > Subject: Re: [Mapserver-users] Easy mapfile question
> > 
> > 
> > 
> > 
> > Tyler Mitchell wrote:
> > 
> > > 
> > > 
> > > 
> > > 
> > >>I currently have a single raster image referenced in my map
> > file and
> > >>it is working properly.  My question : How do I add
> > additional rasters
> > >>to the map file?
> > > 
> > > 
> > > The exact same way, just adding more LAYER....END sections.
> > 
> > OK
> > 
> > > 
> > > 
> > >>For example, say I have a raster map of the western US with
> > extents of
> > >>something like 34N, 114W to 35N, 112W. How do I reference
> > this in my
> > >>map file?  Here's my current map file :
> > > 
> > > 
> > > I guess your question may be more related to how to make 
> the images
> > > line up with each other and/or turn automatically.  Are you 
> > additional
> > > images georeferenced, i.e. geotiff's or tiffs with world
> > files (.twf)?
> > 
> > 
> > Right now, that's an open question as I haven't acquired the
> > real data.
> > 
> > For a test, I just created a ".wld" file that described a
> > jpeg file and 
> > I'm seeing how it fits in.  From an earlier response, I gather my 
> > MINSCALE and MAXSCALE settings for the layers will tell 
> > mapserver when 
> > to render the raster?
> > 
> > Jim
> > 
> > 
> > 
> > 
> > > 
> > > 
> > >>MAP
> > >>   STATUS ON
> > >>   EXTENT -180 -90 180 90
> > >>   UNITS DD
> > >>   SIZE 640 320
> > >>   SHAPEPATH  "/usr/apache2/htdocs/maps/"
> > >>
> > >>WEB
> > >>   TEMPLATE world.html
> > >>   IMAGEPATH "/usr/apache2/htdocs/tmp/"
> > >>   IMAGEURL "/tmp/"
> > >>END
> > >>
> > >>   LAYER
> > >>     NAME world
> > >>     TYPE RASTER
> > >>     DATA world.tif
> > >>     STATUS DEFAULT
> > >>   END
> > >>
> > >>END
> > >>
> > >>Thanks!
> > >>
> > >>Jim Buzbee
> > >>
> > >>
> > >>_______________________________________________
> > >>Mapserver-users mailing list Mapserver-users at lists.gis.umn.edu 
> > >>http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
> > > 
> > > 
> > > 
> > 
> > _______________________________________________
> > Mapserver-users mailing list Mapserver-users at lists.gis.umn.edu
> > http://lists.gis.umn.edu/mailman/listinfo/maps> erver-users
> > 
> 
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu 
> http://lists.gis.umn.edu/mailman/listinfo/maps> erver-users
> 




More information about the MapServer-users mailing list