[mapserver-users] New to Mapserver

Stephen Woodbridge woodbri at swoodbridge.com
Sat Feb 9 09:15:46 EST 2002


Sathis,

If you expect to get more than a few token hits on your server for
demonstration purposes, you need to seriously consider translating the
tigerline data to shape files as you will have big performance problems
otherwise. If you ever plan to expand your data beyond one state you
will need to use shapefiles also. The Census offers a bunch of boundary
shapefiles now on its website for download, I don't think they have the
street level files. Here are two layer definitions I use in my map file
that might help, but I use shapefiles not OGR:

LAYER
  NAME county
  MAXSCALE 799999
  TYPE POLYGON
  STATUS ON
  TILEINDEX "tgrindex"
  DATA county
  CLASS
    NAME "Counties"
    COLOR -1 -1 -1
    OUTLINECOLOR 128 128 128
  END

  METADATA
    "DESCRIPTION" "County"
    "RESULT_FIELDS" "COUNTY STATE SSCCC"
  END

  HEADER "html/cty_header.html"
  FOOTER "html/cty_footer.html"
  TEMPLATE "html/cty.html"

  TOLERANCE 3
END

LAYER
  NAME streets
  MAXSCALE 59999
  STATUS ON
  TILEINDEX "tgrindex"
  DATA minroads
  TYPE LINE
  LABELITEM "NAME"
  CLASS
    NAME "Streets"
    SYMBOL "circle"
    COLOR 0 0 0
    SIZE 4
    OVERLAYSYMBOL "circle"
    OVERLAYCOLOR 255 255 255
    OVERLAYSIZE 2
    LABEL
      ANGLE AUTO
      TYPE TRUETYPE
      ANTIALIAS TRUE
      FONT arial-bold
      MINFEATURESIZE 10
      MINDISTANCE 300
      POSITION UC
      BUFFER 4
      SIZE 8
      COLOR 0 0 0
      OUTLINECOLOR 255 255 204
    END
  END

  METADATA
    "DESCRIPTION" "Surface Streets"
    "RESULT_FIELDS" "TLID NAME CFCC FRADDL TOADDL FRADDR TOADDR ZIPL
ZIPR RTE_NUM"
  END

  HEADER "html/roads_header.html"
  FOOTER "html/roads_footer.html"
  TEMPLATE "html/roads.html"

  TOLERANCE 3
END # streets


-Steve

Sathiskumar Govindasamy wrote:
> 
> Hi,
> 
> Thanks for your reply. Yes I wanted to go to street level mapping in the
> coming days, but I wanted to start with atleast the US and state boundaries
> with Interstates on it now. I have downloaded the Tiger Line 2000 data for
> Illinois. I have installed OGR and I am able to see the information through
> ogrinfo. But, how to I write template file and .map file with layers ? I
> would greatly appreciate your help.
> 
> Thanks
> Sathis
> At 11:34 PM 2/8/2002 -0500, Walt Lin wrote:
> >If you just want to draw the state outlines and labels, don't use
> >TIGER-- use files from nationalatlas.gov .  If you need street level
> >data for the whole US, then tiger is the way to go.  Nationalatlas
> >should have just one layer for states-- setup your .map file for just
> >one layer and off you go.
> >
> >On Fri, Feb 08, 2002 at 05:18:22PM -0600, Sathiskumar Govindasamy wrote:
> > > Hello,
> > >
> > > I am new to Mapserver. I don't know where to start. I tried to go
> > > through tutorial I couldn't get much out of it. I wanted the mapserver
> > > to generate map of US with states marked. I was told to use Tiger Line
> > > data. I don't loaded tigerline files for Illinois and also boundary line
> > > shapefiles for all the state states. Can someone tell me how to start or
> > > point me to some site where they have explained how to use Tiger data ?
> > >
> > > Thanks
> > > Sathis
> > >
> > >
> > >



More information about the mapserver-users mailing list