[mapserver-users] tile4ms - Layer object STATUS

P Kishor punk.kish at gmail.com
Fri Oct 2 20:18:21 EDT 2009


On Fri, Oct 2, 2009 at 7:01 PM, Ted Spradley <tspradley at snoogems.com> wrote:
>
> Hi All,
>
> Still working on basics.  Now tiling.  Following the steps to tile data on
> http://mapserver.org/utilities/tile4ms.html#tile4ms.
>
> 1. With STATUS ON, MS does not display the tiled data at any zoom level
> 2. With STATUS DEFAULT, MS displays the tiled data at all zoom levels
>
> I have scratched my head over this one.  Your thoughts please?

It is actually quite simple, once clear. Here we go --

STATUS OFF means just that.
STATUS ON means, it is available, but has to be requested
STATUS DEFAULT means you're gonna get it no matter what

Given the above three states, you can apply MINSCALEDENOM and
MAXSCALEDENOM. Note that MINSCALE and MAXSCALE are now deprecated.

> The steps
> followed and the associated mapfile are below.  The commented out lines are
> exactly as in the actual file from debugging.
>
> Thank you!
>
> Ted S.
>
> Steps from http://mapserver.org/utilities/tile4ms.html#tile4ms:
>
> 1. Create the meta-file
> # find *areawater.shp -print > areawater_list.txt
>
> 2. Execute tile4ms
> # tile4ms areawater_list.txt areawaterindex
>
> 3. areawaterindex.dbf, areawaterindex.shp, areawaterindex.dbx are created
>     (I notice the contents of areawaterindex.dbf is only a single column,
> LOCATION.  The instructional
>      page shows an ID column)
>
> 4. Create the layer object for the mapfile.
>
> Mapfile
> ######################
>
> MAP
>        SIZE            1600 800
>        EXTENT          -125 24 -65 50
>        UNITS DD
>        PROJECTION
>          "proj=latlong"
>          "ellps=GRS80"
>          "datum=NAD83"
>          "no_defs"
>        END
>    IMAGETYPE PNG24
>        WEB
>                TEMPLATE        "/path/to/templates/mapserver.html"
>                IMAGEPATH       "/path/to/temp/"
>                IMAGEURL        "/temp/"
>                METADATA
>                        "wms_title" "WMS Map Server"
>                        #"wms_srs" "EPSG:4326"
>                END
>        END
>        LAYER
>                NAME            counties
>                TYPE            LINE
>                STATUS          DEFAULT
>                DATA            "/path/to/tl_2008_us_county.shp"
>        #       MINSCALE        1000
>        #       MAXSCALE        1000000000
>                CLASS
>                                COLOR   0 255 0
>                END
>                METADATA
>                        "wms_title" "US County Boundaries"
>                END
>                PROJECTION
>                  "proj=latlong"
>                  "ellps=GRS80"
>                  "datum=NAD83"
>                  "no_defs"
>                END
>        END
>
>        LAYER
>                NAME            "areawater"
>                STATUS          DEFAULT
>                TYPE            POLYGON
>                TILEINDEX       "/path/to/areawaterindex"
>                TILEITEM        'LOCATION'
>                CLASS
>                        NAME "areawater"
>                        STYLE
>                                COLOR   0 0 255
>                        END
>                END
>
>
>        END
> END
>
> ###################################
> Mapfile End
> --
> View this message in context: http://n2.nabble.com/tile4ms-Layer-object-STATUS-tp3758428p3758428.html
> Sent from the Mapserver - User mailing list archive at Nabble.com.
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>



-- 
Puneet Kishor http://www.punkish.org
Carbon Model http://carbonmodel.org
Charter Member, Open Source Geospatial Foundation http://www.osgeo.org
Science Commons Fellow, http://sciencecommons.org/about/whoweare/kishor
Nelson Institute, UW-Madison http://www.nelson.wisc.edu
-----------------------------------------------------------------------
Assertions are politics; backing up assertions with evidence is science
=======================================================================
Sent from Madison, WI, United States


More information about the mapserver-users mailing list