[Mapserver-users] MaxScale / MinScale Problem

Scott Carr scarr at progbits.com
Sat Jan 18 11:22:13 PST 2003


I have a residential and a business layer that lists a whole lot of people
numbers and such.  I would like these layers to only show up when I get down to
a certain extent.  

Anytime I put numbers in the MaxScale / MinScale, the layers are not displayed
at all.  I have put numbers of varying ranges in, but no luck.

Any ideas?

My Map File as it stands now:

map
  extent -104.187846 39.864694 -103.411784 40.610718
  fontset "symbols/fontset.fon"
  imagecolor 255 255 255
  name "Caldwell County"
  shapepath "data"
  size 530 430
  status on
  symbolset "symbols/all.sym"
  transparent on
  units feet
  # 1 scalebar #none
  scalebar
    backgroundcolor 123 123 123
    color 255 0 0
    imagecolor 0 0 255
    intervals 4
    outlinecolor 0 0 0
    size 200 7
    status on
    style 0
    transparent true
    units feet
    # 1 label #none
    label
      backgroundcolor 0 0 0
      color 255 255 0
      size tiny
    end
  end
  # 2 layer Cities
  layer
    classitem "ID"
    data "Cities"
    group "Cities"
    labelcache on
    name "Cities"
    status on
    type polygon
    # 1 class Cities_1
    class
      backgroundcolor 128 128 128
      color 0 128 255
      name "Cities_1"
      outlinecolor 0 0 0
    end
  end
  # 3 layer County
  layer
    classitem "ID"
    data "County"
    group "County"
    labelcache on
    name "County"
    status on
    type polygon
    # 1 class County_1
    class
      backgroundcolor 128 128 128
      color 128 255 128
      name "County_1"
      outlinecolor 0 0 0
    end
  end
  # 4 layer Geocode
  layer
    classitem "ID"
    data "Geocode"
    group "Geocode"
    labelcache on
    name "Geocode"
    status on
    type line
    # 1 class Geocode_1
    class
      backgroundcolor 128 128 128
      color 128 128 128
      name "Geocode_1"
      outlinecolor 0 0 0
    end
  end
  # 5 layer Lakes
  layer
    classitem "ID"
    data "Lakes"
    group "Lakes"
    labelcache on
    name "Lakes"
    status on
    type polygon
    # 1 class Lakes_1
    class
      backgroundcolor 128 128 128
      color 0 128 255
      name "Lakes_1"
      outlinecolor 0 0 0
    end
  end
  # 6 layer Landmarks
  layer
    classitem "ID"
    data "Landmarks"
    group "Landmarks"
    labelcache on
    name "Landmarks"
    status on
    type polygon
    # 1 class Landmarks_1
    class
      backgroundcolor 128 128 128
      color 255 128 0
      name "Landmarks_1"
      outlinecolor 0 0 0
    end
  end
  # 7 layer Majorroads
  layer
    classitem "FRC"
    data "Majorroads"
    group "Majorroads"
    labelcache on
    name "Majorroads"
    status on
    type line
    # 1 class Majorroads_1
    class
      backgroundcolor 128 128 128
      color 0 0 0
      name "Majorroads_1"
      outlinecolor 0 0 0
      size 2
    end
  end
  # 8 layer medical
  layer
    classitem "ABINUMBER"
    data "medical"
    footer "medical_footer.html"
    group "medical"
    header "medical_header.html"
    labelcache on
    name "medical"
    status on
    type point
    # 1 class medical_1
    class
      backgroundcolor 128 128 128
      color 255 255 0
      name "medical_1"
      outlinecolor 0 0 0
    end
  end
  # 9 layer Railroads
  layer
    classitem "ID"
    data "Railroads"
    group "Railroads"
    labelcache on
    name "Railroads"
    status on
    type line
    # 1 class Railroads_1
    class
      backgroundcolor 128 128 128
      color 0 0 0
      name "Railroads_1"
      outlinecolor 0 0 0
    end
  end
  # 10 layer residential
  layer
    classitem "NAME"
    data "residential"
    group "residential"
    labelcache on
    maxscale 20000
    minscale 100 
    name "residential"
    status on
    symbolscale 1
    type point
    # 1 class residential_1
    class
      backgroundcolor 255 255 255
      color 255 128 0
      maxsize 10
      minsize 2
      name "residential_1"
      outlinecolor 0 0 0
      size 1
      symbol "house"
    end
  end
  # 11 layer business
  layer
    classitem "NAME"
    data "business"
    footer "business_footer.html"
    group "business"
    header "business_header.html"
    name "business"
    status on
    MAXSCALE 5000
    MINSCALE 100
    symbolscale 1
    type point
    # 1 class business_1
    class
      backgroundcolor 128 128 128
      color 255 0 0
      maxsize 10
      minsize 2
      name "business_1"
      outlinecolor 0 0 0
      size 1
      symbol "circle"
    end
  end
  # 12 layer Rivers
  layer
    classitem "ID"
    data "Rivers"
    group "Rivers"
    labelcache on
    name "Rivers"
    status on
    type line
    # 1 class Rivers_1
    class
      backgroundcolor 128 128 128
      color 0 128 255
      name "Rivers_1"
      outlinecolor 0 0 0
    end
  end
  # 13 web 1222.html
  web
    footer "1222_footer.html"
    header "1222_header.html"
    imagepath "e:\Program Files\Apache Group\Apache\htdocs\tmp\"
    imageurl "/tmp/"
    template "1222.html"
  end
  # 14 querymap hilite
  querymap
    color 255 0 0
    size 530 430 
    status on
    style hilite
  end
  # 15 reference graphics/reference.gif
  reference
    color -1 -1 -1
    extent -104.187846 39.864694 -103.411784 40.610718
    image "graphics/reference.gif"
    outlinecolor 255 0 0
    size 120 120
    status on
  end
  # 16 legend #none
  legend
    keysize 18 12
    status on
    # 1 label #none
    label
      color 0 0 89
      size medium
      type bitmap
    end
  end
end


-- 
Scott Carr
Documentation Maintainer
http://documentation.openoffice.org
OpenOffice.org





-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/



More information about the MapServer-users mailing list