Substitution strings

Lawrence Hartpence hartpence_gis at CO.JASPER.IA.US
Tue Mar 14 10:43:58 PST 2006


Hello,  It's me again.

I have a layer which after I perform an ItemQuery, it will zoom to the
selected polygon, but the substitution string won't work.  The following URL
should display which Section, Township, and Range is selected as well as
display an image of the selected area, but it doesn't.
http://gismap/JasperMaps/cgi-bin/mapserv.exe?&program=%2FJasperMaps%2Fcgi-bi
n%2Fmapserv.exe&map=C%3A%5CMS4W%5CMapFiles%5CLandCorner.map&zoomsize=2&layer
s=ortho+Monuments+LandCorners+Water+Highways+Roads+County+Sections+Quarter+T
owns+Township&mode=ItemQuery&mapext=shapes&slayer=Sections&imgxy=320+240&img
ext=1680507.39+547052.00+1844030.00+680312.51&mapshape=&imgshape=&imgbox=&qs
tring=('[SECTION_]'='27'%20AND%20'[TWP]'='80'%20AND%20'[RNG]'='19')&qlayer=S
ections&qitem=&shapeindex=&savequery=

If this link doesn't work, here is the webpage:
http://216.203.113.94/JasperMaps/LandCorner/GoLandCorner.html

Here is an excerpt from my mapfile:

LAYER
 NAME 'Sections'
 TEMPLATE 'C:\MS4W\Apache\htdocs\LandCorner\Sections_query.html'
 DATA 'C:\Parcels_shape\sectr_poly'
 STATUS on
 TYPE Polygon
 MINSCALE 15000
 TRANSPARENCY 100
 TOLERANCE 7
 TOLERANCEUNITS pixels
 
 #METADATA
 # WMS_SRS  'epsg:HTML'
 # WMS_TITLE 'WMSTitel'
 # WMS_FEATURE_INFO_MIME_TYPE 'text/html'
 #END #METADATA
 
 #PROJECTION
 # 'init=epsg:HTML'
 #END
 
# LABELITEM 'section_'
 #CLASSITEM 'OBJECTID'
 
 CLASS
  NAME 'Section Lines'
  #EXPRESSION /./
 
  STYLE
   #COLOR 255 255 255
   OUTLINECOLOR 127 127 127
   SIZE 2
  END #STYLE
  LABEL
   TYPE TRUETYPE
   SIZE 10
   FONT Arial 
   COLOR 127 127 127
   POSITION CC
   BACKGROUNDCOLOR 245 254 141
   ANGLE 0
   OFFSET 0 0
  END #LABEL
 END #CLASS
 
END #LAYER

Any help would be greatly appreciated.

Lawrence Hartpence
GIS Coordinator
101 1st St N
Newton IA 50208
641-792-3084
hartpence_gis at co.jasper.ia.us 



More information about the MapServer-users mailing list