[Mapserver-users] Multiple counties in a template file !!!
Dharani Babu
dharanibabus at hotmail.com
Thu Apr 1 21:34:28 PST 2004
Tyler
Thanks for that . Yes steve pls advise me on usage of tileindex etc . But a
correction tyler ...
I am no longer using tiger file directly ( OGR connection as u showed me )
but instead I have downloaded the TIGER Line 2000 files in *shape* file
format from
http://arcdata.esri.com/data/tiger2000/tiger_download.cfm
http://www.esri.com/data/download/census2000_tigerline/index.html
and have at me hands the following layers for NH -rockingham county ...
Line Features - Roads lkA
Line Features - Rails lkB
Line Features - Misc. Transport lkC
Line Features - Landmarks lkD
Line Features Physical lkE
Line Features Non-visible lkF
Line Features Hydrography lkH
Line Features Unknown lkX
County 2000 cty00
Designated Places 2000 plc00
Key Geographic Locations kgl
Landmark Polygons lpy
Landmark Points lpt
Water Polygons wat
Landmark Polygon Names lpy2
The status with these layers are ..I am able to display line features like
roads , rails but not hydrography ( dont know why but have attached my MAP
file below for ur reference )
I am able to display all polygons - water , landmarks .but still labels are
missing . I am yet to implement the ideas given my tyler in another reply .
NOT AT ALL ABLE TO DISPLAY THE POINTS - key geograpic locations , designated
places , etc.
So this my status and I will update soon after my progress . My ultimate aim
is to have an app that will render the choosen states ..and then on the
states users click on to zoom into layers of counties ...etc and also with
LOCATION QUERY feature to locate and zoom in to the area entered by the user
. I am working on this also as tyler gave me some more links ...
my map file
#
# Start of map file
#
FONTSET "c:/ms4w/apache/htdocs/demof/etc/fonts.txt"
NAME DEMO
STATUS ON
SIZE 800 800
EXTENT -71.451310 42.737590 -70.575094 43.274201
#UNITS DEGREES
SHAPEPATH "C:/ms4w/apache/htdocs/demof/NH-RM/"
IMAGECOLOR 255 255 255
IMAGETYPE png
#
# Start of web interface definition
#
WEB
HEADER tiger
TEMPLATE temp_shp1.html
FOOTER demo_footer.html
# MINSCALE 1000
# MAXSCALE 1550000
IMAGEPATH "C:/ms4w/apache/htdocs/temp_shp1/"
IMAGEURL "/temp_shp1/"
# 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
#LABELMAXSCALE 200000
LABELITEM "FENAME"
GROUP tigerdata
NAME tgr33015lkA
TYPE LINE
STATUS DEFAULT
#CONNECTIONTYPE OGR
#CONNECTION "C:/ms4w/apache/htdocs/demof/NH-RM/"
DATA "NH-RM/tgr33015lkA"
CLASS
#SYMBOL "circle"
#SIZE 1
#COLOR 200 0 0
NAME "Roads"
COLOR 130 130 130
LABEL
MINFEATURESIZE 20
MINDISTANCE 100
BUFFER 10
ANGLE auto
POSITION auto
TYPE TRUETYPE
FONT arial
SIZE 8
COLOR 200 0 0
OUTLINECOLOR 255 255 255
ANTIALIAS true
END
END
END
LAYER
GROUP tigerdata
NAME tgr33015lkB
TYPE LINE
STATUS DEFAULT
DATA "NH-RM/tgr33015lkB"
CLASS
NAME "Rails"
COLOR 0 0 200
END
END # layer ends
LAYER
GROUP tigerdata
NAME tgr33015wat
TYPE POLYGON
STATUS DEFAULT
DATA "NH-RM/tgr33015wat"
CLASS
NAME "Water Polygons"
COLOR 0 200 0
LABEL
MINFEATURESIZE 20
MINDISTANCE 100
BUFFER 10
ANGLE auto
POSITION auto
TYPE TRUETYPE
FONT arial
SIZE 8
COLOR 200 0 0
OUTLINECOLOR 255 255 255
ANTIALIAS true
END
END
END # layer ends
LAYER
GROUP tigerdata
NAME tgr33015wat
TYPE POLYGON
STATUS DEFAULT
DATA "NH-RM/tgr33015lpy"
CLASS
NAME "land Polygons"
COLOR 130 130 130
END
END # layer ends
LAYER
GROUP tigerdata
NAME tgr33015kgl
TYPE POINT
STATUS DEFAULT
DATA "NH-RM/tgr33015kgl"
CLASS
NAME "Ket Geo Locns"
COLOR 0 200 0
END
END # layer ends
LAYER
GROUP tigerdata
NAME tgr33015cty00
TYPE LINE
STATUS DEFAULT
DATA "NH-RM/tgr33015cty00"
CLASS
NAME "County boundary"
COLOR 0 0 0
SIZE 16
END
END
END # layer ends
please advise
with regards and thanks in advance
dharani babu s
>From: Tyler Mitchell <TMitchell at lignum.com>
>To: woodbri at swoodbridge.com
>CC: "Dharani Babu"
><dharanibabus at hotmail.com>,mapserver-users at lists.gis.umn.edu
>Subject: Re: [Mapserver-users] Multiple counties in a template file !!!
>Date: Thu, 1 Apr 2004 12:01:46 -0800
>
> > But if you have all the data in the US it is 3300 counties plus or
> > minus and you probably don't want 3300 layers for each attribute.
> > What you want to do is use a tileindex. This will allow you to treat
> > all roads files in all 3300 counties as a single layer.
>
>Good point, I often forget that option. I'm assuming Dharani is using
>TIGER data, so any tips on tiling tiger data would probably be
>appreciated, he is unfamiliar with the indexing tools.
>
>Tyler
_________________________________________________________________
Get the best deals. On Electronics, Mobiles, Laptops. Log on to
www.baazee.com http://go.msnserver.com/IN/45530.asp
More information about the MapServer-users
mailing list