[Mapserver-users] Image indexing problems
Rene Teniere
TENIERER at gov.ns.ca
Fri Mar 26 05:05:22 PST 2004
Hi all,
I've been having a re-occurring problem with an indexed shapefile of
images.
Scenario: Shapefile contains a series of 416 polygons, each
representing an image that is indexed through a field named images in
the table. In the mapfile, TILEINDEX imgindex.shp TILEITEM images
Problem: If you zoom in after a certain point, the main map image will
not process, and you cannot access the index at all until you delete the
temporary internet files and re-load the site. This happens in both
straight php/mapscript and Chameleon. Has anyone run into this before??
I am running PHP v4.3.4, PHP/MapScript v4.1, MapServer v4.0, Chameleon
v1.1a, IIS v5.0, Win2k.
Check it out:
http://nfis.gov.ns.ca/gmap/juan/index.phtml
Rene
MAP
NAME "Hurricane Juan Page"
STATUS ON
EXTENT 381053 4915490 573294 5059550
SIZE 400 300
SHAPEPATH "e:/nfis_data/juan_data/"
SYMBOLSET "e:/www/chameleon/etc/symbols.sym"
FONTSET "e:/www/chameleon/etc/fonts.txt"
IMAGECOLOR 255 255 255
UNITS METERS
RESOLUTION 90.714286
WEB
IMAGEPATH "e:/tmp/"
IMAGEURL "/tmp/"
END
QUERYMAP
STATUS ON
SIZE -1 -1
COLOR 255 255 0
STYLE HILITE
END
PROJECTION
"init=epsg:2038"
#UTM Zone 20 NAD83 for Nova Scotia
END
SCALEBAR
STATUS ON
COLOR 255 255 255
OUTLINECOLOR 0 0 0
BACKGROUNDCOLOR 0 0 0
IMAGECOLOR 255 255 255
UNITS KILOMETERS
INTERVALS 4
SIZE 200 5
STYLE 0
POSITION LL
LABEL
TYPE BITMAP
SIZE SMALL
OFFSET 0 0
BUFFER 0
MINDISTANCE -1
MINFEATURESIZE -1
COLOR 0 0 0
PARTIALS TRUE
FORCE FALSE
END
END
OUTPUTFORMAT
NAME "PNG24"
MIMETYPE "image/png"
DRIVER "GD/PNG"
EXTENSION "png"
IMAGEMODE RGB
END
SYMBOL
NAME "circle"
TYPE ellipse
FILLED true
POINTS
1 1
END
END
SYMBOL
NAME "line1"
TYPE ellipse
FILLED true
POINTS
1 1
END
END
SYMBOL
NAME "dash1"
TYPE ellipse
FILLED true
POINTS
1 1
END
STYLE
10 5 5 10
END
END
SYMBOL
NAME "dash2"
TYPE ellipse
FILLED true
POINTS
1 1
END
STYLE
10 10 10 10
END
END
SYMBOL
NAME "dash3"
TYPE ellipse
FILLED true
POINTS
1 1
END
STYLE
6 4 6 4
END
END
SYMBOL
NAME "dot1"
TYPE ellipse
FILLED true
POINTS
1 1
END
STYLE
1 2 1 2
END
END
SYMBOL
NAME 'hatch'
TYPE vector
POINTS
3 3 3 3
END
END
LAYER
NAME "Images"
GROUP "Imagery"
STATUS ON
TYPE RASTER
MAXSCALE 30000
TILEINDEX "e:/nfis_data/juan_data/imgindex.shp"
TILEITEM "image"
END
LAYER
NAME "orthov4.ecw"
GROUP "Imagery"
STATUS ON
DATA "images/orthov4.ecw"
TYPE RASTER
MINSCALE 30000
MAXSCALE 75000
END
LAYER
NAME "orthov3.ecw"
GROUP "Imagery"
STATUS ON
DATA "images/orthov3.ecw"
TYPE RASTER
MINSCALE 75000
MAXSCALE 150000
END
LAYER
NAME "orthov2.ecw"
GROUP "Imagery"
STATUS ON
DATA "images/orthov2.ecw"
TYPE RASTER
MINSCALE 150000
MAXSCALE 250000
END
LAYER
NAME "orthov1.ecw"
GROUP "Imagery"
STATUS ON
DATA "images/orthov1.ecw"
TYPE RASTER
MINSCALE 250000
END
LAYER
NAME "Nova Scotia"
GROUP "Base Data"
STATUS ON
DATA "shoreutm.shp"
TYPE LINE
UNITS METERS
SIZEUNITS PIXELS
TOLERANCE 0
TOLERANCEUNITS PIXELS
CLASS
NAME "Shoreline"
STYLE
SYMBOL 0
COLOR 72 164 255
SIZE 2
MINSIZE 1
MAXSIZE 100
END
END
END
LAYER
NAME "Index"
GROUP "Base Data"
STATUS ON
DATA "juan_indx.shp"
TYPE POLYGON
UNITS METERS
SIZEUNITS PIXELS
TOLERANCE 0
TOLERANCEUNITS PIXELS
TEMPLATE "e:/nfis_data/juan_data/template/blank.html"
CLASS
NAME "Mapsheet Boundaries"
STYLE
SYMBOL 0
COLOR -1 -1 -1
OUTLINECOLOR 244 188 17
BACKGROUNDCOLOR -1 -1 -1
MINSIZE 1
MAXSIZE 100
END
END
END
LAYER
NAME "Roads"
GROUP "Roads"
STATUS ON
DATA "netlin83_juan.shp"
TYPE LINE
CLASSITEM "netlin_id"
UNITS METERS
SIZEUNITS PIXELS
MAXSCALE 500000
TOLERANCE 10
TOLERANCEUNITS PIXELS
TEMPLATE "e:/nfis_data/juan_data/template/blank.html"
CLASS
NAME "100 Series Highway"
EXPRESSION "210"
STYLE
COLOR 255 00 00
SYMBOL "line1"
SIZE 2
MINSIZE 1
MAXSIZE 100
END
END
CLASS
NAME "Trunk Roads"
EXPRESSION "211"
STYLE
SYMBOL "line1"
COLOR 145 85 0
SIZE 1
MINSIZE 1
MAXSIZE 100
END
END
CLASS
NAME "Secondary Roads"
EXPRESSION "212"
STYLE
SYMBOL "line1"
COLOR 0 0 0
SIZE 1
MINSIZE 1
MAXSIZE 100
END
END
CLASS
NAME "Tracks and Trails"
EXPRESSION "213"
STYLE
SYMBOL "dot1"
COLOR 0 0 0
SIZE 1
MINSIZE 1
MAXSIZE 100
END
END
CLASS
NAME "Railroad"
EXPRESSION "220"
STYLE
COLOR 180 0 0
SYMBOL "dash3"
SIZE 1
MINSIZE 1
MAXSIZE 100
END
END
END
LAYER
NAME "Rivers"
GROUP "Rivers"
STATUS ON
DATA "nshydro83_juan.shp"
TYPE LINE
UNITS METERS
SIZEUNITS PIXELS
MAXSCALE 250000
TOLERANCE 10
TOLERANCEUNITS PIXELS
TEMPLATE "e:/nfis_data/juan_data/template/blank.html"
CLASS
NAME "Rivers and Streams"
STYLE
SYMBOL 0
COLOR 0 0 230
SIZE 1
MINSIZE 1
MAXSIZE 100
END
END
END
LAYER
NAME "Major Water Bodies"
GROUP "Major Water Bodies"
STATUS ON
DATA "nslake83_juan.shp"
TYPE LINE
UNITS METERS
SIZEUNITS PIXELS
MAXSCALE 250000
TOLERANCE 10
TOLERANCEUNITS PIXELS
TEMPLATE "e:/nfis_data/juan_data/template/blank.html"
CLASS
NAME "Lakes and Water Bodies"
STYLE
SYMBOL 0
COLOR 72 164 255
OUTLINECOLOR 0 0 230
BACKGROUNDCOLOR 72 164 255
MINSIZE 1
MAXSIZE 100
END
END
END
LAYER
NAME "Flight Line"
GROUP "Flight Line"
STATUS ON
DATA "juan_photocentres.shp"
TYPE POINT
MAXSCALE 250000
TOLERANCE 10
TOLERANCEUNITS PIXELS
TEMPLATE "e:/nfis_data/juan_data/template/blank.html"
CLASS
NAME "Airphoto Centres"
STYLE
SYMBOL 7
COLOR 255 153 51
SIZE 8
MINSIZE 1
MAXSIZE 100
END
END
END
END
More information about the MapServer-users
mailing list