looking for tile index example for tif's using Mapserver 4.02

John Wiley JWiley at CITY.PARKSVILLE.BC.CA
Mon Jan 17 15:44:34 PST 2005


Hi 
We need an example of how to set up a basic mapserver viewer that will display images using the tile index mentioned on page 3 of howto for RASTERS.
I have been successful creating a basic application which shows one "test" image as in my map file below... please fine at the start of the layers it is called 'Ptest":
 
Thank you for any help
 
 
John
 
 
 
....
#
# Start of map file
#
NAME Pville
STATUS ON
SIZE 600 600
EXTENT 401500 5461000 410000 5466600
UNITS METERS
FONTSET "C:\Inetpub\wwwroot\Parksville\fonts\fonts.list"
SHAPEPATH "data"
IMAGECOLOR 255 255 255
 
# you may need to change this to match your MapServer build
#IMAGETYPE PNG
 
#
# Projection definition, consult the PROJ.4 documentation for parameter discussion
#
#PROJECTION
#  "proj=utm"
#  "ellps=GRS80"
#  "zone=15"
#  "north"
#  "no_defs"
#
#  OR: 
#
#  "init=epsg:26915"
#END
 
#
# Start of web interface definition (including WMS enabling metadata)
#
WEB
  HEADER Pville_header.html
  TEMPLATE Pville.html
  FOOTER Pville_footer.html
  MINSCALE 1000
  #MAXSCALE 155000
  MAXSCALE 40000
  IMAGEPATH "set in Pville_init.html"
  IMAGEURL "set in Pville_init.html"
  METADATA
    WMS_TITLE "UMN MapServer Parksville BC"
    WMS_ABSTRACT "This is the UMN MapServer application for the City of Parksville located on Vancouver Island."
    WMS_ACCESSCONSTRAINTS none
 
    # change this value to match your setup
    WMS_ONLINERESOURCE "http://localhost/Parksville/Pville_init.html"
 
    WMS_SRS "EPSG:26915"
  END
END
 
QUERYMAP
  SIZE 200 200
  STATUS ON
  STYLE HILITE
  COLOR 255 0 0
END
 
#
# Start of reference map
#
REFERENCE
  IMAGE graphics/reference.gif
  EXTENT 401500 5461000 410000 5466600
  SIZE 120 120
  STATUS ON
  COLOR -1 -1 -1
  OUTLINECOLOR 255 0 0
END
 
#
# Start of legend
#
LEGEND
  KEYSIZE 12 12
  LABEL
    TYPE BITMAP
    SIZE MEDIUM
    COLOR 0 0 89
  END
  STATUS ON
END
 
#
# Start of scalebar
#
SCALEBAR
  IMAGECOLOR 255 255 255
  LABEL
    COLOR 0 0 0
    SIZE tiny    
  END
  STYLE 1
  SIZE 80 2
  COLOR 0 0 0
  UNITS METERS
  INTERVALS 1
  TRANSPARENT FALSE
  STATUS EMBED
  POSITION LR
END
 
#
# Start of symbol definitions (we're only using a few)
#
SYMBOL
  NAME 'circle'
  TYPE ELLIPSE
  POINTS 1 1 END
  FILLED TRUE
END
 
# Rem March9,04
# Start of layer definitions
#
LAYER
  NAME Ptest
  TYPE RASTER
  STATUS OFF
  DATA test01NAD83.tif
  PROCESSING "BANDS=1,2,3"
  OFFSITE 71 74 65
END #LAYER  
  
LAYER
   NAME Pparks
   TYPE POLYGON
   STATUS OFF
   DATA P83parks
   LABELITEM "NAME"
   LABELMAXSCALE 5000
   CLASS
     NAME Parks
     COLOR 40 195 48
     TEMPLATE "Parks.html"
     LABEL
       MINFEATURESIZE 40
       MINDISTANCE 100
       BUFFER 10
       ANGLE AUTO
       POSITION AUTO
       SIZE MEDIUM
       COLOR 0 0 0         
     END #LABEL      
   END #CLASS  
   HEADER "Parks_header.html"
   FOOTER "Parks_footer.html"   
END #LAYER
 
LAYER
  NAME Pwatercourse
  TYPE LINE
  STATUS OFF
  DATA P83watercourse
  CLASS
    NAME Watercourse
    COLOR 49 117 185
  END #CLASS 
END #LAYER
 

LAYER
  NAME Pwatflow
  TYPE POLYGON
  STATUS DEFAULT
  DATA P83watflow
  CLASS
    NAME Pwatflow
    COLOR 49 37 185
  END #CLASS  
END #LAYER
 

LAYER
  NAME Ppoints
  TYPE POINT
  DATA P83points
  STATUS DEFAULT
  LABELITEM "NAME"
  LABELMAXSCALE 2000
  TOLERANCE 10
  TOLERANCEUNITS PIXELS
  CLASS
    NAME 'Places'
    TEMPLATE "Points.html"
    STYLE
      COLOR 128 255 164
      SYMBOL 'circle'
      SIZE 7
    END #STYLE
    LABEL
      MINFEATURESIZE 10
      MINDISTANCE 20
      BUFFER 5
      ANGLE AUTO
      POSITION AUTO
      SIZE SMALL
      COLOR 128 255 164
    END #LABEL
  END #CLASS
  HEADER "Points_header.html"
  FOOTER "Points_footer.html"  
END #LAYER
 
LAYER
  NAME Proads
  TYPE LINE
  DATA P83roads
  STATUS DEFAULT
  MINSCALE 15000
  LABELITEM "ROADNAME"
  LABELMAXSCALE 80000
  CLASS
    NAME Roads
    COLOR 0 0 0
    SIZE 20
    LABEL
      TYPE TRUETYPE
      FONT arial
      MINFEATURESIZE 20
      MINDISTANCE 100
      BUFFER 10
      ANGLE AUTO
      POSITION AUTO
      SIZE 6
      COLOR 0 0 0
      ANTIALIAS TRUE
    END #LABEL  
  END #CLASS 
END  #LAYER
 
LAYER
  NAME Proadshide
  TYPE LINE
  DATA P83roads
  STATUS DEFAULT
  MAXSCALE 15000
  LABELITEM "ROADNAME"
  CLASS
    NAME Roads
    #COLOR 255 255 255
    SIZE 20
    LABEL
      TYPE TRUETYPE
      FONT arial
      MINFEATURESIZE 20
      MINDISTANCE 150
      BUFFER 10
      ANGLE AUTO
      POSITION AUTO
      SIZE 6
      COLOR 0 0 0
      ANTIALIAS TRUE
    END #LABEL  
  END #CLASS 
END  #LAYER
 

LAYER
  NAME Pcad
  TYPE POLYGON
  STATUS DEFAULT
  MAXSCALE 20000
  DATA P83cad_Intersect
  LABELITEM "CHOUSE"
  LABELMAXSCALE 2000
  CLASS
    NAME Lots
    TEMPLATE "Cad.html"
    OUTLINECOLOR 200 200 200
    LABEL
      MINFEATURESIZE 10
      MINDISTANCE 10
      BUFFER 5
      ANGLE AUTO
      POSITION AUTO
      SIZE MEDIUM
      COLOR 0 0 0 
    END #LABEL
  END #CLASS  
  HEADER "Cad_header.html"
  FOOTER "Cad_footer.html" 
END #LAYER
 
LAYER
  NAME Pzoning
  TYPE POLYGON
  STATUS OFF
  MAXSCALE 30000
  DATA P83zoning
  LABELITEM "Z"
  LABELMAXSCALE 20000
  CLASS
    NAME Zoning
    OUTLINECOLOR 255 0 0
    LABEL
      MINFEATURESIZE 10
      MINDISTANCE 10
      BUFFER 5
      ANGLE AUTO
      POSITION AUTO
      SIZE LARGE
      COLOR 255 0 0
    END #LABEL
  END #CLASS  
END #LAYER
 
LAYER
  NAME Pwater
  TYPE LINE
  STATUS OFF
  MAXSCALE 15000
  TOLERANCE 10
  TOLERANCEUNITS PIXELS
  DATA P83water
  CLASS
    NAME Waterworks
    TEMPLATE "Waterworks.html"
    COLOR 0 0 255
  END #CLASS  
  HEADER "Waterworks_header.html"
  FOOTER "Waterworks_footer.html" 
END #LAYER
 
LAYER
  NAME Psanitary
  TYPE LINE
  STATUS OFF
  MAXSCALE 15000
  TOLERANCE 10
  TOLERANCEUNITS PIXELS
  DATA P83sanitary
  CLASS
    NAME Sanitary
    TEMPLATE 'Sanitary.html'
    COLOR 204 102 0
  END #CLASS
  HEADER 'Sanitary_header.html'
  FOOTER 'Sanitary_footer.html' 
END #LAYER
 
LAYER
  NAME Pstorm
  TYPE LINE
  STATUS OFF
  MAXSCALE 15000
  TOLERANCE 10
  TOLERANCEUNITS PIXELS
  DATA P83storm
  CLASS
    NAME Storm
    TEMPLATE "Storm.html"
    COLOR 0 255 0
  END #CLASS  
  HEADER "Storm_header.html"
  FOOTER "Storm_footer.html" 
END #LAYER
 
LAYER
  NAME Ptrails
  TYPE LINE
  STATUS OFF
  MAXSCALE 20000
  DATA P83trails
  CLASS
    NAME Trails
    COLOR 180 100 40
  END #CLASS  
END #LAYER
 

LAYER
  NAME Pbuildings
  TYPE LINE
  STATUS OFF
  MAXSCALE 20000
  DATA P83buildings
  CLASS
    NAME Buildings
    COLOR 255 175 175
  END #CLASS  
END #LAYER
 
LAYER
  NAME Pboundary
  TYPE LINE
  STATUS DEFAULT
  DATA P83boundary
  CLASS
    NAME Boundary
    COLOR 255 0 255
  END #CLASS 
END #LAYER
 

END # Map File

 
 
John Wiley, C.Tech.
GIS Technologist
City of Parksville, BC
Direct 250 954 4696
Fax     250 248 6140


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050117/252525ae/attachment.htm>


More information about the MapServer-users mailing list