<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META content="MSHTML 5.50.4522.1800" name=GENERATOR></HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2><SPAN class=85424006-10092001>Hi
Group,</SPAN></FONT></DIV>
<DIV><SPAN class=85424006-10092001><FONT face=Arial size=2>here my problem still
once in detail:<BR></FONT>
<P><FONT face=Arial size=2>I would like to show <SPAN
class=85424006-10092001>a query </SPAN>result on certain scale, but BUFFER or
SCALE parameter does nothing. <SPAN class=85424006-10092001>S</SPAN>teve
gave me datzu the following tip</FONT><SPAN class=85424006-10092001><FONT
face=Arial size=2>:</FONT></P>
<P><FONT face=Arial><FONT size=2><SPAN class=85424006-10092001>"</SPAN>Hi
Michael: You're correct, this doesn't work on 3.4, but will in 3.5 (currently
doesn't). It's not<SPAN class=85424006-10092001> </SPAN>a technical issue rather
one of priorities in getting things working. You can work around this<SPAN
class=85424006-10092001> </SPAN>by not using a query map but rather adding a
second layer to use in displaying the query<SPAN class=85424006-10092001>
</SPAN>results. For this second layer you're going to modify the class
expression dynamically to isolate<SPAN class=85424006-10092001> </SPAN>the
chosen record and draw it special. You do this within an <img...> tag that
normally would<SPAN class=85424006-10092001> </SPAN>be used to display the
querymap. Here's how:<SPAN class=85424006-10092001> </SPAN>- add a second layer
to your mapfile, it should reference the same data as you want to query and
define the class to draw the selected feature as you wish, the class item
should<SPAN class=85424006-10092001> </SPAN>be 'regnrba'. Don't define a class
expression. Place this layer AFTER the main layer and<SPAN
class=85424006-10092001> </SPAN>set it's status to OFF.<SPAN
class=85424006-10092001> </SPAN></FONT></FONT></P>
<P><FONT face=Arial><FONT size=2><SPAN
class=85424006-10092001></SPAN></FONT></FONT><FONT face=Arial size=2>- drop the
query map from your mapfile</FONT></P>
<P><FONT face=Arial size=2>- add something like this to your template (assuming
new layer is called foo)</FONT></P>
<P><FONT face=Arial><FONT size=2><img
src="/cgi-bin/mapserv.exe?map=[mapfile]&layer=foo&mapxy=[shpmidx]+[shpmidy]&buffer=xxxx&map_foo_class_expression=[REGNRBA]&mode=map[getlayers]"><SPAN
class=85424006-10092001> "</SPAN></FONT></FONT></P>
<P><FONT face=Arial size=2><SPAN class=85424006-10092001>But with the Variables
'[shpmidx]+[shpmidy]' this don't work. What wrong do I make?</SPAN></FONT></P>
<P><FONT face=Arial size=2><SPAN class=85424006-10092001>Here my File
listings:<BR></SPAN></FONT></SPAN></SPAN><FONT face=Arial
size=2></FONT></P></DIV>
<DIV><SPAN class=85424006-10092001><FONT face=Arial size=2>Init (html-) file
</FONT></SPAN><SPAN class=85424006-10092001><FONT face=Arial
size=2>(index06.html):</FONT></SPAN></DIV>
<DIV><SPAN class=85424006-10092001><FONT face=Arial
size=2><html><BR><head><title>Mapserver Demo
Informationssystem Altbergbau</title></head><BR><body
bgcolor="#FFFFFF"></FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=85424006-10092001><FONT face=Arial
size=2><center><h2>Informationssystem Altbergbau Demo
06.09.2001</h2></center><BR><p><hr><p></FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=85424006-10092001><FONT face=Arial size=2>Start der Demo durch
drücken des Knopfes unten</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=85424006-10092001><FONT face=Arial size=2><form method=GET
action='/cgi-bin/mapserv.exe'><BR><!--Für Test: <form method=GET
action='/cgi-bin/mapserv.exe'> --></FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=85424006-10092001><FONT face=Arial size=2><input
type='hidden' name='map'
value='C:/Inetpub/wwwroot/ms_demo/isab06.map'></FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=85424006-10092001><FONT face=Arial size=2><input
type='hidden' name='layer' value='lsa_tfb'><BR><input type='hidden'
name='layer' value='lsatk200'></FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=85424006-10092001><FONT face=Arial size=2><input
type='hidden' name='zoomsize' value=2></FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=85424006-10092001><FONT face=Arial
size=2><center><input type='submit'
value='Start'></center></FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=85424006-10092001><FONT face=Arial
size=2></form></FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=85424006-10092001><FONT face=Arial
size=2><p><hr><p></FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=85424006-10092001><FONT face=Arial
size=2></body></html></FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=85424006-10092001></SPAN><SPAN class=85424006-10092001><FONT
face=Arial size=2><html></FONT></SPAN></DIV>
<DIV><SPAN class=85424006-10092001><FONT face=Arial
size=2>----------------------------------------------------------------------------------------------------------------------------------------------------------------</FONT></SPAN></DIV>
<DIV><SPAN class=85424006-10092001><FONT face=Arial size=2>Templete
file:</FONT></SPAN></DIV>
<DIV><SPAN class=85424006-10092001><FONT face=Arial
size=2><head><BR><title>Mapserver - einfacher
Test</title><BR><meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1"><BR><meta name="GENERATOR"
content="notepad"><BR></head></FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=85424006-10092001><FONT face=Arial
size=2><body><BR><form method=GET
action='/cgi-bin/mapserv.exe'></FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=85424006-10092001><FONT face=Arial size=2><p>Das ist eine
ganz einfache Mapserver Seite</p><BR><p>Es soll Objekt mit Regnrba =
1005-23/01 angezeigt werden<p></FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=85424006-10092001><FONT face=Arial size=2><p>Test
Map</a><br></FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=85424006-10092001><FONT face=Arial size=2><!-- This work:
--><BR><img border="1"
src="/cgi-bin/mapserv.exe?map=ms_demo/isab06.map&layer=q_lsa_tfb&mapxy=4482400+5750000&buffer=10000&map_q_tfb_lsa_class_expression=1005-23/01&mode=map&layers=lsatk200+lsa_tfb>"
</p><br><BR><!-- Don't work --><BR><img border="1"
src="/cgi-bin/mapserv.exe?map=ms_demo/isab06.map&layer=q_lsa_tfb&mapxy=[shpmidx]+[shpmidy]&buffer=10000&map_q_tfb_lsa_class_expression=1005-23/01&mode=map[get_layers]"
</p><BR><p> </p><BR><input type="hidden"
name="imgxy" value="299.5 299.5"><BR><input type="hidden" name="imgext"
value="[mapext]"><BR><input type="hidden" name="map"
value="[map]"><BR><input type="hidden" name="savequery"
value="true"><BR><input type="hidden" name="mapext"
value="shapes"><BR><input type="hidden" name="mapxy"
value="[shpmid]"><BR><input type="hidden" name="getlayers"
value="[get_layers]"></FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=85424006-10092001><FONT face=Arial
size=2></form><BR></body><BR></html><BR></FONT></SPAN></DIV>
<DIV><SPAN class=85424006-10092001><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=85424006-10092001><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=85424006-10092001><FONT face=Arial size=2>Map
File:</FONT></SPAN></DIV>
<DIV><SPAN class=85424006-10092001><FONT face=Arial size=2>map<BR> extent
4401328.5 5644860.0 4582087.0 5878911.5<BR> imagecolor 255 255
255<BR> name "Isab06 (Test Steve's Methode)"<BR> shapepath
"data"<BR> size 600 600<BR> status on<BR> symbolset
"symbols/all.sym"<BR> #MA fontset eingefügt für Beschriftung der
Lables<BR> fontset "font.set"<BR> units meters<BR> # 1 web
isab02.html<BR> web<BR> footer
"isab06_footer.html"<BR> header
"isab06_header.html"<BR> imagepath
"C:/Inetpub/wwwroot/ms_demo/tmp/"<BR> imageurl
"/ms_demo/tmp/"<BR> template
"isab06.html"<BR> log "isab06.log"<BR> end
<BR> # Querymap für diese Version entfern<BR> # 2 querymap
hilite<BR> # querymap<BR>
# STATUS ON<BR> # STYLE
HILITE<BR> # COLOR 255 255
0<BR> # size 700
500<BR> # end<BR> # 3 scalebar #none<BR>
scalebar<BR> backgroundcolor 255 255 0<BR>
color 255 255 255<BR> imagecolor 255 255
255<BR> intervals 4<BR> outlinecolor 0 0
0<BR> size 200 7<BR> status
on<BR> style 0<BR> transparent
true<BR> units meters<BR> # 1 label
#none<BR> label<BR>
backgroundcolor 0 0 0<BR> color 255 255
0<BR> size tiny<BR>
end<BR> end<BR> # 4 layer
lsarb<BR>
layer<BR> classitem
"MERGE_RP"<BR> data
"lsarb"<BR> # group
"lsarb"<BR> labelcache
on<BR> labelitem
"MERGE_RP"<BR> name
"lsarb"<BR> # postlabelcache true #
Wenn Option aktiv erscheint Fläche immer
oben<BR> queryitem
"MERGE_RP"<BR> status
on<BR> type
polygon<BR> # 2 class {RP
Dessau}<BR>
class<BR>
color 255 217
125<BR>
SYMBOL
2<BR>
expression
"151"<BR>
name "RP
Dessau"<BR>
outlinecolor 0 0
0<BR>
label<BR> color 0 128
255<BR>
end #
label<BR>
end<BR> # 3
class {RP
Halle}<BR>
class<BR>
color 255 251
195<BR>
expression
"152"<BR>
name "RP
Halle"<BR>
outlinecolor 0 0
0<BR>
label<BR> color 0 128
255<BR>
end #
label<BR>
end<BR> # 4
class {RP
Magdeburg}<BR>
class<BR>
color 183 223
134<BR>
expression
"153"<BR>
name "RP
Magdeburg"<BR>
outlinecolor 0 0
0<BR>
label<BR> color 0 128
255<BR>
end # label<BR> end<BR> end<BR>
#<BR> # Rasterlayer TK200<BR>
LAYER<BR> NAME
"lsatk200"<BR> DATA
"lsatk200.tif"<BR> TYPE
RASTER<BR> STATUS ON<BR> END<BR> # 5
layer lsa_tfb<BR> layer<BR> name
"lsa_tfb"<BR> type polygon<BR> status
on<BR> data "lsa_tfb"<BR> header
"lsa_tfb_header.html"<BR> # 1 query
#none<BR> query<BR>
template "lsa_tfb_query.html"<BR>
end<BR> # minscale 50000 # MA: nicht zu klein wählen - sonst
keine Anzeige der Objekte<BR> labelcache
on<BR> labelitem "REGNR_BA"<BR> #
postlabelcache true # wenn Option aktiv, kein Hiliting in der
Abfrage!<BR> # 2 class lsa_tfb_1<BR>
class<BR> name
"Tiefbauflaechen"<BR> SYMBOL
0<BR> color 255 102 0<BR>
outlinecolor 0 0 0<BR> # 1 label
#none<BR>
label<BR> angle
auto<BR> antialias<BR> backgroundcolor 250
250 150<BR> buffer 2 #Größe des Labels
(MA)<BR> color 140 70 5<BR> font
"arial"<BR> maxsize 12<BR> minsize
7<BR> position cr<BR> size
small<BR> type
truetype<BR> end # label<BR>
end<BR> end<BR> # MA: jetzt kommt der Abfragelayer<BR> # 5
layer q_lsa_tfb<BR>
layer<BR> name
"q_lsa_tfb"<BR> type
polygon<BR> status
off<BR> data
"lsa_tfb"<BR> header
"lsa_tfb_header.html"<BR> # MA: Querymap für Abfrage
entfernen<BR> # 1 query
#none<BR>
query<BR> template
"lsa_tfb_query.html"<BR>
end<BR> labelcache
on<BR> labelitem
"REGNR_BA"<BR> # postlabelcache true # wenn Option
aktiv, kein Hiliting in der Abfrage!<BR> # 2 class
lsa_tfb_1<BR>
class<BR> name
"regnr_ba"<BR> SYMBOL
0<BR> color 230 221
251<BR> outlinecolor 0 0
0<BR>
label<BR>
angle
auto<BR>
antialias<BR>
backgroundcolor 250 250
150<BR>
buffer 2 #Größe des Labels
(MA)<BR>
color 140 70
5<BR>
font
"arial"<BR>
maxsize
12<BR>
minsize
7<BR>
position
cr<BR>
size
small<BR>
type truetype<BR> end #
label<BR> end
#class<BR> <BR> end<BR> # Ende des
Abfragelayers<BR> # 6 reference graphics/reference.gif<BR>
reference<BR> color -1 -1 -1<BR> extent
4401328.5 5644860.0 4582087.0 5878911.5<BR> image
"graphics/reference.gif"<BR> outlinecolor 255 0
0<BR> size 120 120<BR> status on<BR>
end<BR> # 8 legend #none<BR> legend<BR> keysize 18
12<BR> status on<BR> # 1 label
#none<BR> label<BR> color 0 0
89<BR> size
medium<BR> type bitmap<BR>
end<BR> end<BR>end</FONT></SPAN></DIV>
<DIV><SPAN class=85424006-10092001><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=85424006-10092001><FONT face=Arial
size=2>Logfile:</FONT></SPAN></DIV>
<DIV><SPAN class=85424006-10092001><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=85424006-10092001><FONT face=Arial size=2>Mon Sep 10 09:10:29
2001,434,198.168.200.39,Isab06 (Test Steve's Methode),0,4374758.379800
5644860.000000 4608657.120200 5878911.500000,-1.000000 -1.000000,lsa_tfb
lsatk200 ,normal execution<BR>Mon Sep 10 09:10:29 2001,47,198.168.200.39,Isab06
(Test Steve's Methode),0,4401328.500000 5644860.000000 4582087.000000
5878911.500000,-1.000000 -1.000000,q_lsa_tfb ,getNumeric(): Incorrect data type.
</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=85424006-10092001><FONT face=Arial size=2>Mon Sep 10 09:10:30
2001,362,198.168.200.39,Isab06 (Test Steve's Methode),3,4472400.000000
5740000.000000 4492400.000000 5760000.000000,4482400.000000
5750000.000000,q_lsa_tfb lsatk200 lsa_tfb> ,normal
execution<BR></FONT></SPAN></DIV>
<DIV><SPAN class=85424006-10092001><FONT face=Arial size=2>(Wy 3
entries?)</FONT></SPAN></DIV>
<DIV><SPAN class=85424006-10092001><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV>
<P><FONT size=2><FONT face=Arial>Greetings from <SPAN
class=85424006-10092001>Halle/Saale, Germany</SPAN></FONT></FONT></P>
<P><FONT size=2><FONT face=Arial><SPAN
class=85424006-10092001>Michael</SPAN></FONT></FONT></P>
<P><FONT size=2><SPAN class=85424006-10092001></SPAN>Dipl.-Ing. M.
Achtzehn<BR>CUI - Consultinggesellschaft für Umwelt und
Infrastruktur<BR>Eisenbahnstraße 10<BR>06132
Halle<BR>____________________</FONT><A href="http://www.cui.de/"><BR><FONT
color=#000000 size=2>www.cui.de</FONT></A><BR><FONT size=2>Tel.: 0345 7742
749<BR>Fax.: 0345 7742 754<BR><BR></P></FONT></DIV>
<DIV><FONT size=2></FONT> </DIV></BODY></HTML>