[mapserver-users] webuser text display

Palmer, Steve Steve_Palmer@lpsg.com
Tue, 22 Oct 2002 16:13:45 -0500


This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C27A0F.E807F950
Content-Type: text/plain;
	charset="iso-8859-1"

Here is one that works for me for an inline point....

Get request snippet...

...&map_address_feature=new&map_address_feature_points=513139.0325+911004.25
67&map_address_feature_text=129+MAIN+ST&...

... and corresponding feature layer...

####### Start Layer
LAYER
 NAME address
 STATUS DEFAULT
 TYPE POINT
 FEATURE
  POINTS END
 END
 CLASS
  SYMBOL 'symbols/house.gif'
  LABEL
   TYPE BITMAP
   BACKGROUNDCOLOR 255 255 176
   BACKGROUNDSHADOWCOLOR 0 0 0
   SIZE TINY
   BUFFER 1
   COLOR 0 0 0
   POSITION UR
  END
 END
END
####### End Layer

Note that if you're trying to "logo's" or such things you specify image
coordinates and set the layer's transform property to "OFF" (Default is
"ON")

-----Original Message-----
From: Steve Young [mailto:steve@sierraclubbc.org]
Sent: Tuesday, October 22, 2002 2:34 PM
To: mapserver-users@lists.gis.umn.edu
Cc: Nedjo Rogers
Subject: [mapserver-users] webuser text display



Hi,

I'm having problems displaying inline text using mapserver 3.6. I can get
symbol to draw, but can't get text added. Has anyone else run into this
problem? I'm new to mapserver so I could be tripping up on the obvious. It
seems straightforward so it's all the more puzzling that I can't get it
working.

TIA,

Steve

>From the help page:

"It is also possible to define inline features using this mechanism. This is
the only case where you can add on to the map file. You can edit/change
layer parameters but you cannot create a new layer. With inline features you
have to first create a feature and then build upon it, however, the layer
the feature belongs to must exist. Here's a snippet from a GET request that
adds a feature to a webuser layer:


...&map_webuser_feature=new&map_webuser_feature_points=12345.6789+12345.6789
         +map_webuser_feature_text=My+House!&..."

_____________________

Steve Young
GIS Technician

E steve@sierraclubbc.org
T 250 386 5255
F 250 386 4453


Sierra Club of BC
576 Johnson St
Victoria
B.C. V8W 1M3
CANADA
www.sierraclub.ca/bc


------_=_NextPart_001_01C27A0F.E807F950
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2653.12">
<TITLE>RE: [mapserver-users] webuser text display</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2>Here is one that works for me for an inline =
point....</FONT>
</P>

<P><FONT SIZE=3D2>Get request snippet...</FONT>
</P>

<P><FONT =
SIZE=3D2>...&amp;map_address_feature=3Dnew&amp;map_address_feature_point=
s=3D513139.0325+911004.2567&amp;map_address_feature_text=3D129+MAIN+ST&a=
mp;...</FONT>
</P>

<P><FONT SIZE=3D2>... and corresponding feature layer...</FONT>
</P>

<P><FONT SIZE=3D2>####### Start Layer</FONT>
<BR><FONT SIZE=3D2>LAYER</FONT>
<BR><FONT SIZE=3D2>&nbsp;NAME address</FONT>
<BR><FONT SIZE=3D2>&nbsp;STATUS DEFAULT</FONT>
<BR><FONT SIZE=3D2>&nbsp;TYPE POINT</FONT>
<BR><FONT SIZE=3D2>&nbsp;FEATURE</FONT>
<BR><FONT SIZE=3D2>&nbsp; POINTS END</FONT>
<BR><FONT SIZE=3D2>&nbsp;END</FONT>
<BR><FONT SIZE=3D2>&nbsp;CLASS</FONT>
<BR><FONT SIZE=3D2>&nbsp; SYMBOL 'symbols/house.gif'</FONT>
<BR><FONT SIZE=3D2>&nbsp; LABEL</FONT>
<BR><FONT SIZE=3D2>&nbsp;&nbsp; TYPE BITMAP</FONT>
<BR><FONT SIZE=3D2>&nbsp;&nbsp; BACKGROUNDCOLOR 255 255 176</FONT>
<BR><FONT SIZE=3D2>&nbsp;&nbsp; BACKGROUNDSHADOWCOLOR 0 0 0</FONT>
<BR><FONT SIZE=3D2>&nbsp;&nbsp; SIZE TINY</FONT>
<BR><FONT SIZE=3D2>&nbsp;&nbsp; BUFFER 1</FONT>
<BR><FONT SIZE=3D2>&nbsp;&nbsp; COLOR 0 0 0</FONT>
<BR><FONT SIZE=3D2>&nbsp;&nbsp; POSITION UR</FONT>
<BR><FONT SIZE=3D2>&nbsp; END</FONT>
<BR><FONT SIZE=3D2>&nbsp;END</FONT>
<BR><FONT SIZE=3D2>END</FONT>
<BR><FONT SIZE=3D2>####### End Layer</FONT>
</P>

<P><FONT SIZE=3D2>Note that if you're trying to &quot;logo's&quot; or =
such things you specify image coordinates and set the layer's transform =
property to &quot;OFF&quot; (Default is &quot;ON&quot;)</FONT></P>

<P><FONT SIZE=3D2>-----Original Message-----</FONT>
<BR><FONT SIZE=3D2>From: Steve Young [<A =
HREF=3D"mailto:steve@sierraclubbc.org">mailto:steve@sierraclubbc.org</A>=
]</FONT>
<BR><FONT SIZE=3D2>Sent: Tuesday, October 22, 2002 2:34 PM</FONT>
<BR><FONT SIZE=3D2>To: mapserver-users@lists.gis.umn.edu</FONT>
<BR><FONT SIZE=3D2>Cc: Nedjo Rogers</FONT>
<BR><FONT SIZE=3D2>Subject: [mapserver-users] webuser text =
display</FONT>
</P>
<BR>
<BR>

<P><FONT SIZE=3D2>Hi,</FONT>
</P>

<P><FONT SIZE=3D2>I'm having problems displaying inline text using =
mapserver 3.6. I can get</FONT>
<BR><FONT SIZE=3D2>symbol to draw, but can't get text added. Has anyone =
else run into this</FONT>
<BR><FONT SIZE=3D2>problem? I'm new to mapserver so I could be tripping =
up on the obvious. It</FONT>
<BR><FONT SIZE=3D2>seems straightforward so it's all the more puzzling =
that I can't get it</FONT>
<BR><FONT SIZE=3D2>working.</FONT>
</P>

<P><FONT SIZE=3D2>TIA,</FONT>
</P>

<P><FONT SIZE=3D2>Steve</FONT>
</P>

<P><FONT SIZE=3D2>From the help page:</FONT>
</P>

<P><FONT SIZE=3D2>&quot;It is also possible to define inline features =
using this mechanism. This is</FONT>
<BR><FONT SIZE=3D2>the only case where you can add on to the map file. =
You can edit/change</FONT>
<BR><FONT SIZE=3D2>layer parameters but you cannot create a new layer. =
With inline features you</FONT>
<BR><FONT SIZE=3D2>have to first create a feature and then build upon =
it, however, the layer</FONT>
<BR><FONT SIZE=3D2>the feature belongs to must exist. Here's a snippet =
from a GET request that</FONT>
<BR><FONT SIZE=3D2>adds a feature to a webuser layer:</FONT>
</P>
<BR>

<P><FONT =
SIZE=3D2>...&amp;map_webuser_feature=3Dnew&amp;map_webuser_feature_point=
s=3D12345.6789+12345.6789</FONT>
<BR><FONT SIZE=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
+map_webuser_feature_text=3DMy+House!&amp;...&quot;</FONT>
</P>

<P><FONT SIZE=3D2>_____________________</FONT>
</P>

<P><FONT SIZE=3D2>Steve Young</FONT>
<BR><FONT SIZE=3D2>GIS Technician</FONT>
</P>

<P><FONT SIZE=3D2>E steve@sierraclubbc.org</FONT>
<BR><FONT SIZE=3D2>T 250 386 5255</FONT>
<BR><FONT SIZE=3D2>F 250 386 4453</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>Sierra Club of BC</FONT>
<BR><FONT SIZE=3D2>576 Johnson St</FONT>
<BR><FONT SIZE=3D2>Victoria</FONT>
<BR><FONT SIZE=3D2>B.C. V8W 1M3</FONT>
<BR><FONT SIZE=3D2>CANADA</FONT>
<BR><FONT SIZE=3D2>www.sierraclub.ca/bc</FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C27A0F.E807F950--