[Mapserver-users] --= PROBLEM WITH CLASS EXPRESSION CONNECTED WITH SHPMID =--
Tomasz Wlazłowski
wlazlowski at igpik.waw.pl
Mon Jun 7 02:03:16 PDT 2004
This is a multi-part message in MIME format.
--------------030803090808050401030004
Content-Type: text/plain; charset=ISO-8859-2; format=flowed
Content-Transfer-Encoding: 7bit
HELLO MAPSERVER USERS!
What I try to do is center to the selected feature in current map
extent. How can I zoom to selected feature (features). I know that I
should use some syntax with [shpmid] but I DON'T KNOW HOW TO DO THIS.
PLEASE HELP ME to dissolve my little problem.
In my map file I have "doubled shapefile":
LAYER
NAME PLOT
DATA Cataster
STATUS ON
TYPE polygon
LABELITEM "NUMER"
LABELMAXSCALE 5000
TRANSPARENCY 10
CLASSITEM "NUMER"
CLASS
COLOR 245 245 220
OUTLINECOLOR 0 0 0
TEMPLATE "dzialki.html"
LABEL
COLOR 0 0 0
TYPE BITMAP
FONT arial-bold
SIZE SMALL
ANTIALIAS TRUE
POSITION CC
PARTIALS FALSE
MINDISTANCE 250
BUFFER 4
END
END
HEADER "dzialki_header.html"
FOOTER "dzialki_footer.html"
END
#------------------------------------------------------
LAYER # Query
NAME QPLOT
DATA Cataster
STATUS OFF
TYPE polygon
CLASSITEM "NUMER"
CLASS
# EXPRESSION ([NUMER] eq [value])
COLOR 255 50 10
OUTLINECOLOR 0 0 0
END
END
In my html file I use this syntax:
<input type="hidden" name="layer" value="Qdzialki">
<input type="hidden" name="map_Qdzialki_class_expression" value="[NUMER]">
<input type="text" name="map_Qdzialki_class_expression" size="5"
maxsize="9" value="">
and it's work fine. If I put some number in txtbox I get in the map
window selected feature. But I ask one more time:
DOES ANYBODY KNOW HOW TO ZOOM TO THIS(THOSE) SELECTED FEATURES?????
--------------030803090808050401030004
Content-Type: text/html; charset=ISO-8859-2
Content-Transfer-Encoding: 8bit
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-2">
<title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
<p class="MsoNormal"><span lang="EN-US" style="">HELLO
MAPSERVER USERS!<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style=""><!--[if !supportEmptyParas]--> <!--[endif]--><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="">What I try
to do is center to the selected feature in current map extent. How can
I zoom
to selected feature (features). I know that I should use some syntax
with
[shpmid] but I DON’T KNOW HOW TO DO THIS.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style=""><!--[if !supportEmptyParas]--> <!--[endif]--><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="">PLEASE HELP
ME to dissolve my little problem</span>.<span lang="EN-US" style=""><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style=""><span style=""> </span>In
my map file I have “doubled shapefile”:<span style="color: red;"><o:p></o:p></span></span></p>
<p class="MsoNormal" style=""><small><small><small><small><small><small><small><small><small><small><small><small><small><span
lang="EN-US" style="font-size: 11pt; font-family: "Courier New";">LAYER<br>
</span></small></small></small></small></small></small></small></small></small></small></small></small></small></p>
<p class="MsoNormal" style=""><small><small><small><small><small><small><small><small><small><small><small><small><small><span
lang="EN-US" style="font-size: 11pt; font-family: "Courier New";"><span
style=""> </span>NAME PLOT<o:p></o:p></span></small></small></small></small></small></small></small></small></small></small></small></small></small></p>
<h1><small><small><small><small><small><small><small><small><small><small><small><small><small><span
lang="EN-US" style="font-size: 11pt; color: red;"><span style=""> </span>DATA
Cataster<o:p></o:p></span></small></small></small></small></small></small></small></small></small></small></small></small></small></h1>
<p class="MsoNormal" style=""><small><small><small><small><small><small><small><small><small><small><small><small><small><span
lang="EN-US" style="font-size: 11pt; font-family: "Courier New";"><span
style=""> </span>STATUS ON<o:p></o:p></span></small></small></small></small></small></small></small></small></small></small></small></small></small></p>
<p class="MsoNormal" style=""><small><small><small><small><small><small><small><small><small><small><small><small><small><span
lang="EN-US" style="font-size: 11pt; font-family: "Courier New";"><span
style=""> </span></span><span lang="DE"
style="font-size: 11pt; font-family: "Courier New";">TYPE polygon<o:p></o:p></span></small></small></small></small></small></small></small></small></small></small></small></small></small></p>
<p class="MsoNormal" style=""><small><small><small><small><small><small><small><small><small><small><small><small><small><span
lang="DE" style="font-size: 11pt; font-family: "Courier New";"><span
style=""> </span><span style=""> </span>LABELITEM "NUMER"<o:p></o:p></span></small></small></small></small></small></small></small></small></small></small></small></small></small></p>
<p class="MsoNormal" style=""><small><small><small><small><small><small><small><small><small><small><small><small><small><span
lang="DE" style="font-size: 11pt; font-family: "Courier New";"><span
style=""> </span><span style=""> </span></span><span lang="EN-US"
style="font-size: 11pt; font-family: "Courier New";">LABELMAXSCALE 5000<o:p></o:p></span></small></small></small></small></small></small></small></small></small></small></small></small></small></p>
<p class="MsoNormal" style=""><small><small><small><small><small><small><small><small><small><small><small><small><small><span
lang="EN-US" style="font-size: 11pt; font-family: "Courier New";"><span
style=""> </span><span style=""> </span>TRANSPARENCY 10<o:p></o:p></span></small></small></small></small></small></small></small></small></small></small></small></small></small></p>
<p class="MsoNormal" style=""><small><small><small><small><small><small><small><small><small><small><small><small><small><span
lang="EN-US" style="font-size: 11pt; font-family: "Courier New";"><span
style=""> </span><span style=""> </span>CLASSITEM "NUMER"<o:p></o:p></span></small></small></small></small></small></small></small></small></small></small></small></small></small></p>
<p class="MsoNormal" style=""><small><small><small><small><small><small><small><small><small><small><small><small><small><span
lang="EN-US" style="font-size: 11pt; font-family: "Courier New";"><span
style=""> </span>CLASS<span style=""> </span><o:p></o:p></span></small></small></small></small></small></small></small></small></small></small></small></small></small></p>
<p class="MsoNormal" style=""><small><small><small><small><small><small><small><small><small><small><small><small><small><span
lang="EN-US" style="font-size: 11pt; font-family: "Courier New";"><span
style=""> </span><span style=""> </span>COLOR 245 245 220<o:p></o:p></span></small></small></small></small></small></small></small></small></small></small></small></small></small></p>
<p class="MsoNormal" style=""><small><small><small><small><small><small><small><small><small><small><small><small><small><span
lang="EN-US" style="font-size: 11pt; font-family: "Courier New";"><span
style=""> </span><span style=""> </span>OUTLINECOLOR 0 0 0<o:p></o:p></span></small></small></small></small></small></small></small></small></small></small></small></small></small></p>
<p class="MsoNormal" style=""><small><small><small><small><small><small><small><small><small><small><small><small><small><span
lang="EN-US" style="font-size: 11pt; font-family: "Courier New";"><span
style="">
</span>TEMPLATE "dzialki.html"<o:p></o:p></span></small></small></small></small></small></small></small></small></small></small></small></small></small></p>
<p class="MsoNormal" style=""><small><small><small><small><small><small><small><small><small><small><small><small><small><span
lang="EN-US" style="font-size: 11pt; font-family: "Courier New";"><span
style=""> </span><span style=""> </span>LABEL<o:p></o:p></span></small></small></small></small></small></small></small></small></small></small></small></small></small></p>
<p class="MsoNormal" style=""><small><small><small><small><small><small><small><small><small><small><small><small><small><span
lang="EN-US" style="font-size: 11pt; font-family: "Courier New";"><span
style=""> </span><span style=""> </span>COLOR 0 0 0<o:p></o:p></span></small></small></small></small></small></small></small></small></small></small></small></small></small></p>
<p class="MsoNormal" style=""><small><small><small><small><small><small><small><small><small><small><small><small><small><span
lang="EN-US" style="font-size: 11pt; font-family: "Courier New";"><span
style=""> </span><span style=""> </span>TYPE BITMAP<o:p></o:p></span></small></small></small></small></small></small></small></small></small></small></small></small></small></p>
<p class="MsoNormal" style=""><small><small><small><small><small><small><small><small><small><small><small><small><small><span
lang="EN-US" style="font-size: 11pt; font-family: "Courier New";"><span
style=""> </span><span style=""> </span>FONT arial-bold<o:p></o:p></span></small></small></small></small></small></small></small></small></small></small></small></small></small></p>
<p class="MsoNormal" style=""><small><small><small><small><small><small><small><small><small><small><small><small><small><span
lang="EN-US" style="font-size: 11pt; font-family: "Courier New";"><span
style=""> </span><span style=""> </span>SIZE SMALL<o:p></o:p></span></small></small></small></small></small></small></small></small></small></small></small></small></small></p>
<p class="MsoNormal" style=""><small><small><small><small><small><small><small><small><small><small><small><small><small><span
lang="EN-US" style="font-size: 11pt; font-family: "Courier New";"><span
style=""> </span><span style=""> </span>ANTIALIAS TRUE<o:p></o:p></span></small></small></small></small></small></small></small></small></small></small></small></small></small></p>
<p class="MsoNormal" style=""><small><small><small><small><small><small><small><small><small><small><small><small><small><span
lang="EN-US" style="font-size: 11pt; font-family: "Courier New";"><span
style=""> </span><span style=""> </span>POSITION CC<o:p></o:p></span></small></small></small></small></small></small></small></small></small></small></small></small></small></p>
<p class="MsoNormal" style=""><small><small><small><small><small><small><small><small><small><small><small><small><small><span
lang="EN-US" style="font-size: 11pt; font-family: "Courier New";"><span
style=""> </span><span style=""> </span>PARTIALS FALSE<o:p></o:p></span></small></small></small></small></small></small></small></small></small></small></small></small></small></p>
<p class="MsoNormal" style=""><small><small><small><small><small><small><small><small><small><small><small><small><small><span
lang="EN-US" style="font-size: 11pt; font-family: "Courier New";"><span
style=""> </span><span style=""> </span>MINDISTANCE 250<o:p></o:p></span></small></small></small></small></small></small></small></small></small></small></small></small></small></p>
<p class="MsoNormal" style=""><small><small><small><small><small><small><small><small><small><small><small><small><small><span
lang="EN-US" style="font-size: 11pt; font-family: "Courier New";"><span
style=""> </span><span style=""> </span>BUFFER 4<o:p></o:p></span></small></small></small></small></small></small></small></small></small></small></small></small></small></p>
<p class="MsoNormal" style=""><small><small><small><small><small><small><small><small><small><small><small><small><small><span
lang="EN-US" style="font-size: 11pt; font-family: "Courier New";"><!--[endif]--><o:p></o:p></span></small></small></small></small></small></small></small></small></small></small></small></small></small></p>
<p class="MsoNormal" style=""><small><small><small><small><small><small><small><small><small><small><small><small><small><span
lang="EN-US" style="font-size: 11pt; font-family: "Courier New";">END<o:p></o:p></span></small></small></small></small></small></small></small></small></small></small></small></small></small></p>
<p class="MsoNormal" style=""><small><small><small><small><small><small><small><small><small><small><small><small><small><span
lang="EN-US" style="font-size: 11pt; font-family: "Courier New";">END<o:p></o:p></span></small></small></small></small></small></small></small></small></small></small></small></small></small></p>
<p class="MsoNormal" style=""><small><small><small><small><small><small><small><small><small><small><small><small><small><span
lang="EN-US" style="font-size: 11pt; font-family: "Courier New";">HEADER
"dzialki_header.html"<o:p></o:p></span></small></small></small></small></small></small></small></small></small></small></small></small></small></p>
<p class="MsoNormal" style=""><small><small><small><small><small><small><small><small><small><small><small><small><small><span
lang="EN-US" style="font-size: 11pt; font-family: "Courier New";">FOOTER
"dzialki_footer.html"<o:p></o:p></span></small></small></small></small></small></small></small></small></small></small></small></small></small></p>
<p class="MsoNormal" style=""><small><small><small><small><small><small><small><small><small><small><small><small><small><span
lang="EN-US" style="font-size: 11pt; font-family: "Courier New";">END<o:p></o:p></span></small></small></small></small></small></small></small></small></small></small></small></small></small></p>
<p class="MsoNormal" style=""><small><small><small><small><small><small><small><small><small><small><small><small><small><span
lang="EN-US" style="font-size: 11pt; font-family: "Courier New";">#------------------------------------------------------<o:p></o:p></span></small></small></small></small></small></small></small></small></small></small></small></small></small></p>
<p class="MsoNormal" style=""><small><small><small><small><small><small><small><small><small><small><small><small><small><span
lang="EN-US" style="font-size: 11pt; font-family: "Courier New";">LAYER
# Query<o:p></o:p></span></small></small></small></small></small></small></small></small></small></small></small></small></small></p>
<p class="MsoNormal" style=""><small><small><small><small><small><small><small><small><small><small><small><small><small><span
lang="EN-US" style="font-size: 11pt; font-family: "Courier New";"><span
style=""> </span>NAME QPLOT<o:p></o:p></span></small></small></small></small></small></small></small></small></small></small></small></small></small></p>
<p class="MsoNormal" style=""><small><small><small><small><small><small><small><small><small><small><small><small><small><span
lang="EN-US" style="font-size: 11pt; font-family: "Courier New";"><span
style=""> </span><b><span style="color: red;">DATA Cataster<o:p></o:p></span></b></span></small></small></small></small></small></small></small></small></small></small></small></small></small></p>
<p class="MsoNormal" style=""><small><small><small><small><small><small><small><small><small><small><small><small><small><span
lang="EN-US" style="font-size: 11pt; font-family: "Courier New";"><span
style=""> </span>STATUS OFF<o:p></o:p></span></small></small></small></small></small></small></small></small></small></small></small></small></small></p>
<p class="MsoNormal" style=""><small><small><small><small><small><small><small><small><small><small><small><small><small><span
lang="EN-US" style="font-size: 11pt; font-family: "Courier New";"><span
style=""> </span></span><span lang="DE"
style="font-size: 11pt; font-family: "Courier New";">TYPE polygon<o:p></o:p></span></small></small></small></small></small></small></small></small></small></small></small></small></small></p>
<p class="MsoNormal" style=""><small><small><small><small><small><small><small><small><small><small><small><small><small><span
lang="DE" style="font-size: 11pt; font-family: "Courier New";"><span
style=""> </span><span style=""> </span></span><span
lang="EN-US" style="font-size: 11pt; font-family: "Courier New";">CLASSITEM
"NUMER"<o:p></o:p></span></small></small></small></small></small></small></small></small></small></small></small></small></small></p>
<p class="MsoNormal" style=""><small><small><small><small><small><small><small><small><small><small><small><small><small><span
lang="EN-US" style="font-size: 11pt; font-family: "Courier New";"><span
style=""> </span>CLASS<span style=""> </span><o:p></o:p></span></small></small></small></small></small></small></small></small></small></small></small></small></small></p>
<p class="MsoNormal" style=""><small><small><small><small><small><small><small><small><small><small><small><small><small><span
lang="EN-US" style="font-size: 11pt; font-family: "Courier New";"><span
style=""> </span><span style=""> </span>#<span style="">
</span>EXPRESSION ([NUMER] eq [value])<o:p></o:p></span></small></small></small></small></small></small></small></small></small></small></small></small></small></p>
<p class="MsoNormal" style=""><small><small><small><small><small><small><small><small><small><small><small><small><small><span
lang="EN-US" style="font-size: 11pt; font-family: "Courier New";"><span
style=""> </span>COLOR
255 50 10<o:p></o:p></span></small></small></small></small></small></small></small></small></small></small></small></small></small></p>
<p class="MsoNormal" style=""><small><small><small><small><small><small><small><small><small><small><small><small><small><span
lang="EN-US" style="font-size: 11pt; font-family: "Courier New";"><span
style="">
</span>OUTLINECOLOR 0 0 0<o:p></o:p></span></small></small></small></small></small></small></small></small></small></small></small></small></small></p>
<p class="MsoNormal" style=""><small><small><small><small><small><small><small><small><small><small><small><small><small><span
lang="EN-US" style="font-size: 11pt; font-family: "Courier New";"><span
style=""> </span>END<o:p></o:p></span></small></small></small></small></small></small></small></small></small></small></small></small></small></p>
<p class="MsoNormal" style=""><small><small><small><small><small><small><small><small><small><small><small><small><small><span
lang="EN-US" style="font-size: 11pt; font-family: "Courier New";"><!--[if !supportEmptyParas]--> <!--[endif]--><o:p></o:p></span></small></small></small></small></small></small></small></small></small></small></small></small></small></p>
<p class="MsoNormal" style=""><small><small><small><small><small><small><small><small><small><small><small><small><small><span
lang="EN-US" style="font-size: 11pt; font-family: "Courier New";">END</span></small></small></small></small></small></small></small></small></small></small></small></small></small><span
lang="EN-US" style="font-size: 10pt; font-family: "Courier New";"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style=""><!--[if !supportEmptyParas]--> <!--[endif]--><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style=""><!--[if !supportEmptyParas]--> <!--[endif]--><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="">In my html
file I use this syntax:<o:p></o:p></span></p>
<p class="MsoNormal" style=""><span lang="EN-US"
style="font-family: "Courier New";"><input type="hidden"
name="layer" value="Qdzialki"><o:p></o:p></span></p>
<p class="MsoNormal" style=""><span lang="EN-US"
style="font-family: "Courier New";"><input type="hidden"
name="map_Qdzialki_class_expression" value="[NUMER]"><o:p></o:p></span></p>
<p class="MsoNormal" style=""><span lang="EN-US"
style="font-family: "Courier New";"><input type="text"
name="map_Qdzialki_class_expression" size="5"
maxsize="9" value=""><o:p></o:p></span></p>
<p class="MsoNormal" style=""><span lang="EN-US"
style="font-family: "Courier New";"><!--[if !supportEmptyParas]--> <!--[endif]--><o:p></o:p></span></p>
<p class="MsoNormal" style=""><span lang="EN-US"
style="font-family: "Courier New";">and it’s work fine. If I put some
number in txtbox I
get in the map window selected feature. But I ask one more time:<o:p></o:p></span></p>
<p class="MsoNormal" style=""><span lang="EN-US"
style="font-family: "Courier New";">DOES ANYBODY KNOW HOW TO ZOOM TO
THIS(THOSE) SELECTED
FEATURES?????<o:p></o:p></span></p>
</body>
</html>
--------------030803090808050401030004--
More information about the MapServer-users
mailing list