[Mapserver-users] Help with TIGER+ MAP file !!!!

Dharani Babu dharanibabus at hotmail.com
Fri Feb 27 03:18:09 EST 2004


Hi all
I request help from any of u who work  with TIGER + MapServer . My system is 
win Xp / 2k .
   I am using TIGER line files with map server for my mapping application . 
As of now I am able to render the base map - CompleteChain with Landmarks 
/PIP of the  TIGER files ( TGR33015 - of Rockingham - NH ) . But I am 
searching to find ways to add the NAMES of the locations . like city n, town 
  , street , road names . I got a reply to similar request to add TEXT 
LABELS to be specified . I understand that we can render the layers from the 
list generated by ogrinfo.exe . I ran the ogrinfo.exe and got the following 
layers
Had to open data source read-only.
INFO: Open of `c:/ms4w/apache/htdocs/demof/data/rm'
using driver `TIGER' successful.
1: CompleteChain (Line String)
2: AltName (None)
3: FeatureIds (None)
4: ZipCodes (None)
5: Landmarks (Point)
6: AreaLandmarks (None)
7: KeyFeatures (None)
8: Polygon (None)
9: EntityNames (Point)
10: IDHistory (None)
11: PolyChainLink (None)
12: PIP (Point)
13: TLIDRange (None)
14: ZipPlus4 (None)
I persume the layer "EntityNames" refer to the names that appear on the map 
right ?
If so how to use them in map file reference ?
my map file is as follows ...

# Start of map file
#
NAME DEMO
STATUS ON
SIZE 600 600
EXTENT -71.451310 42.737590 -70.575094 43.274201
#UNITS DEGREES
SHAPEPATH "C:/ms4w/apache/htdocs/demof/data/rm/"
IMAGECOLOR 255 255 255

IMAGETYPE png

#
# Projection definition, consult the PROJ.4 documentation for parameter 
discussi
#
#PROJECTION
#  "proj=utm"
#  "ellps=GRS80"
#  "zone=10"
#  "north"
#  "no_defs"
#  "init=EPSG:26910"
#END

#
# Start of web interface definition
#
WEB
  HEADER tiger
  TEMPLATE temp_rm2.html
  FOOTER demo_footer.html
#  MINSCALE 1000
#  MAXSCALE 1550000
  IMAGEPATH "C:/ms4w/apache/htdocs/temp_rm2/"
  IMAGEURL "/temp_rm2/"
  # LOG "demo.log"
END

QUERYMAP
  SIZE 200 200
  STATUS ON
  STYLE HILITE
  COLOR 255 0 0
END

#
# Start of reference map
#
REFERENCE
  IMAGE graphics/dem.gif
  EXTENT 481314.93 5620068.63 703440.19 5837331.76
  SIZE 200 192
  STATUS OFF
  COLOR -1 -1 -1
  OUTLINECOLOR 255 0 0
END

#
# Start of legend
#
LEGEND
  KEYSIZE 18 12
  LABEL
    TYPE BITMAP
    SIZE MEDIUM
    COLOR 0 0 89
  END
  STATUS ON
END

#
# Setting up output formats
#

OUTPUTFORMAT
  NAME png
  DRIVER "GD/PNG"
  MIMETYPE "image/png"
  IMAGEMODE RGB #PC256
  EXTENSION "png"
END

#
# Start of scalebar
#
SCALEBAR
  IMAGECOLOR 255 255 255
  LABEL
    COLOR 255 255 255
    SIZE tiny
  END
  STYLE 1
  SIZE 50 2
  COLOR 255 255 255
  UNITS KILOMETERS
  INTERVALS 1
  TRANSPARENT TRUE
  STATUS TRUE
END


SYMBOL
  NAME "circle"
  TYPE ellipse
  FILLED true
  POINTS
    1 1
  END
END

#
# Start of layer definitions
#

LAYER
GROUP tigerdata
NAME tiger1
TYPE LINE
STATUS DEFAULT
CONNECTIONTYPE OGR
CONNECTION "C:/ms4w/apache/htdocs/demof/data/rm"
DATA "CompleteChain"
CLASS
SYMBOL "circle"
SIZE 1
COLOR 200 0 0
END
END


LAYER
GROUP tigerdata
NAME tiger5
TYPE POINT
STATUS DEFAULT
CONNECTIONTYPE OGR
CONNECTION "C:/ms4w/apache/htdocs/demof/data/rm"
DATA "Landmarks"
CLASS
SYMBOL "circle"
SIZE 4
COLOR 0 200 0
END
END

LAYER
GROUP tigerdata
NAME tiger9
TYPE POINT
STATUS DEFAULT
CONNECTIONTYPE OGR
CONNECTION "C:/ms4w/apache/htdocs/demof/data/rm"
DATA "EntityNames"
CLASS
SYMBOL "circle"
SIZE 1
COLOR 0 0 200
END
END

_________________________________________________________________
Raja Ravi Varma paintings. Buy art prints. 
http://go.msnserver.com/IN/42737.asp At MSN Shopping.




More information about the mapserver-users mailing list