[mapserver-users] Two questions

Palmer, Steve Steve_Palmer@lpsg.com
Thu, 24 Oct 2002 12:11:04 -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_01C27B80.560F7880
Content-Type: text/plain;
	charset="iso-8859-1"

Re: two scale bars

The following works for me in my map template

<IMG
src="[program]?map=[map]&mapext=[minx]+[miny]+[maxx]+[maxy]&map_scalebar_uni
ts=miles&mode=scalebar">
<p>
<IMG src="[scalebar]">

-----Original Message-----
From: Ivan Paoluzzi [mailto:tesimap@hotmail.com]
Sent: Thursday, October 24, 2002 10:34 AM
To: mapserver-users@lists.gis.umn.edu
Subject: [mapserver-users] Two questions


Hi all,
I have 2 questions:

I) I want to have two scalebar in my mapserver project, first in meters and 
second in feet.
But I succeed to draw it only one. How do I do to have both?

This in my scalebar (in meters) declaration:
SCALEBAR
  SIZE 150 5
  STATUS ON
  STYLE 1
  IMAGECOLOR 255 255 255
  COLOR 0 0 0
  BACKGROUNDCOLOR 0 0 0
  OUTLINECOLOR 0 0 0
  UNITS METERS
  INTERVALS 3
  LABEL
    COLOR 0 0 0
    SIZE TINY
  END
END   #scalebar


II) They have told me, in mailing list, that isn't possible to do a JOIN 
with Mapserver 3.5; is it real?
In effects my JOIN doesn't give no result.
They heve also told me that i have to 3.3 version to do a JOIN.
Is there another method to do it?

This is my layer:
LAYER
  NAME civici_sed
  TYPE POINT
  STATUS ON
  DATA civici_sed
  CLASSITEM civico
  CLASS
        NAME "Numeri Civici"
        COLOR 255 255 0
        TEMPLATE "civici.html"
	JOIN
	  NAME civicijoin
	  TABLE pop.dbf
	  FROM civico  #field of civici_sed.dbf
	  TO key       #field of pop.dbf
	  TYPE MULTIPLE
          TEMPLATE "civicijoin.html"
	END
   END
   HEADER "civici_header.html"
   FOOTER "civici_footer.html"
END


It shows fields of "civici_sed.dbf" but doesn't show the field "key" (a 
field of "pop.dbf").

Ivan



_________________________________________________________________
MSN Extra Storage! Hotmail all'ennesima potenza. Provalo!  
http://www.msn.it/msnservizi/es/

------_=_NextPart_001_01C27B80.560F7880
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] Two questions</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2>Re: two scale bars</FONT>
</P>

<P><FONT SIZE=3D2>The following works for me in my map template</FONT>
</P>

<P><FONT SIZE=3D2>&lt;IMG =
src=3D&quot;[program]?map=3D[map]&amp;mapext=3D[minx]+[miny]+[maxx]+[max=
y]&amp;map_scalebar_units=3Dmiles&amp;mode=3Dscalebar&quot;&gt;</FONT>
<BR><FONT SIZE=3D2>&lt;p&gt;</FONT>
<BR><FONT SIZE=3D2>&lt;IMG src=3D&quot;[scalebar]&quot;&gt;</FONT>
</P>

<P><FONT SIZE=3D2>-----Original Message-----</FONT>
<BR><FONT SIZE=3D2>From: Ivan Paoluzzi [<A =
HREF=3D"mailto:tesimap@hotmail.com">mailto:tesimap@hotmail.com</A>]</FON=
T>
<BR><FONT SIZE=3D2>Sent: Thursday, October 24, 2002 10:34 AM</FONT>
<BR><FONT SIZE=3D2>To: mapserver-users@lists.gis.umn.edu</FONT>
<BR><FONT SIZE=3D2>Subject: [mapserver-users] Two questions</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>Hi all,</FONT>
<BR><FONT SIZE=3D2>I have 2 questions:</FONT>
</P>

<P><FONT SIZE=3D2>I) I want to have two scalebar in my mapserver =
project, first in meters and </FONT>
<BR><FONT SIZE=3D2>second in feet.</FONT>
<BR><FONT SIZE=3D2>But I succeed to draw it only one. How do I do to =
have both?</FONT>
</P>

<P><FONT SIZE=3D2>This in my scalebar (in meters) declaration:</FONT>
<BR><FONT SIZE=3D2>SCALEBAR</FONT>
<BR><FONT SIZE=3D2>&nbsp; SIZE 150 5</FONT>
<BR><FONT SIZE=3D2>&nbsp; STATUS ON</FONT>
<BR><FONT SIZE=3D2>&nbsp; STYLE 1</FONT>
<BR><FONT SIZE=3D2>&nbsp; IMAGECOLOR 255 255 255</FONT>
<BR><FONT SIZE=3D2>&nbsp; COLOR 0 0 0</FONT>
<BR><FONT SIZE=3D2>&nbsp; BACKGROUNDCOLOR 0 0 0</FONT>
<BR><FONT SIZE=3D2>&nbsp; OUTLINECOLOR 0 0 0</FONT>
<BR><FONT SIZE=3D2>&nbsp; UNITS METERS</FONT>
<BR><FONT SIZE=3D2>&nbsp; INTERVALS 3</FONT>
<BR><FONT SIZE=3D2>&nbsp; LABEL</FONT>
<BR><FONT SIZE=3D2>&nbsp;&nbsp;&nbsp; COLOR 0 0 0</FONT>
<BR><FONT SIZE=3D2>&nbsp;&nbsp;&nbsp; SIZE TINY</FONT>
<BR><FONT SIZE=3D2>&nbsp; END</FONT>
<BR><FONT SIZE=3D2>END&nbsp;&nbsp; #scalebar</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>II) They have told me, in mailing list, that isn't =
possible to do a JOIN </FONT>
<BR><FONT SIZE=3D2>with Mapserver 3.5; is it real?</FONT>
<BR><FONT SIZE=3D2>In effects my JOIN doesn't give no result.</FONT>
<BR><FONT SIZE=3D2>They heve also told me that i have to 3.3 version to =
do a JOIN.</FONT>
<BR><FONT SIZE=3D2>Is there another method to do it?</FONT>
</P>

<P><FONT SIZE=3D2>This is my layer:</FONT>
<BR><FONT SIZE=3D2>LAYER</FONT>
<BR><FONT SIZE=3D2>&nbsp; NAME civici_sed</FONT>
<BR><FONT SIZE=3D2>&nbsp; TYPE POINT</FONT>
<BR><FONT SIZE=3D2>&nbsp; STATUS ON</FONT>
<BR><FONT SIZE=3D2>&nbsp; DATA civici_sed</FONT>
<BR><FONT SIZE=3D2>&nbsp; CLASSITEM civico</FONT>
<BR><FONT SIZE=3D2>&nbsp; CLASS</FONT>
<BR><FONT SIZE=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NAME =
&quot;Numeri Civici&quot;</FONT>
<BR><FONT SIZE=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COLOR 255 =
255 0</FONT>
<BR><FONT SIZE=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TEMPLATE =
&quot;civici.html&quot;</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT =
SIZE=3D2>JOIN</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>&nbsp; =
NAME civicijoin</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>&nbsp; =
TABLE pop.dbf</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>&nbsp; =
FROM civico&nbsp; #field of civici_sed.dbf</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>&nbsp; TO =
key&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #field of pop.dbf</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>&nbsp; =
TYPE MULTIPLE</FONT>
<BR><FONT =
SIZE=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
TEMPLATE &quot;civicijoin.html&quot;</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT =
SIZE=3D2>END</FONT>
<BR><FONT SIZE=3D2>&nbsp;&nbsp; END</FONT>
<BR><FONT SIZE=3D2>&nbsp;&nbsp; HEADER =
&quot;civici_header.html&quot;</FONT>
<BR><FONT SIZE=3D2>&nbsp;&nbsp; FOOTER =
&quot;civici_footer.html&quot;</FONT>
<BR><FONT SIZE=3D2>END</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>It shows fields of &quot;civici_sed.dbf&quot; but =
doesn't show the field &quot;key&quot; (a </FONT>
<BR><FONT SIZE=3D2>field of &quot;pop.dbf&quot;).</FONT>
</P>

<P><FONT SIZE=3D2>Ivan</FONT>
</P>
<BR>
<BR>

<P><FONT =
SIZE=3D2>_______________________________________________________________=
__</FONT>
<BR><FONT SIZE=3D2>MSN Extra Storage! Hotmail all'ennesima potenza. =
Provalo!&nbsp; </FONT>
<BR><FONT SIZE=3D2><A HREF=3D"http://www.msn.it/msnservizi/es/" =
TARGET=3D"_blank">http://www.msn.it/msnservizi/es/</A></FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C27B80.560F7880--