<!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 6.00.2800.1276" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Tahoma size=2><EM></EM></FONT> </DIV>
<BLOCKQUOTE>
<DIV>
<TABLE id=HB_Mail_Container height="100%" cellSpacing=0 cellPadding=0
width="100%" border=0 UNSELECTABLE="on">
<TBODY>
<TR height="100%" UNSELECTABLE="on" width="100%">
<TD id=HB_Focus_Element vAlign=top width="100%" background="" height=250
UNSELECTABLE="off">
<P><SPAN class=416372810-30122003><FONT face=Arial color=#0000ff
size=2> > </FONT></SPAN><EM>Hi:</EM></P>
<P><SPAN class=416372810-30122003><FONT face=Arial color=#0000ff
size=2> > </FONT></SPAN><EM>I have a question, What do you
recommend? Geotools or Gistoolkit, and do you have any example on How I
have to use this libraries in order </EM><SPAN
class=416372810-30122003><FONT face=Arial color=#0000ff size=2><EM><FONT
face="Times New Roman" color=#000000
size=3>></FONT></EM> </FONT></SPAN><EM>display the data in a web
page or something similar.</EM><SPAN class=416372810-30122003><FONT
face=Arial color=#0000ff size=2> </FONT></SPAN></P>
<P><SPAN class=416372810-30122003><FONT color=#0000ff>Why don't you use
MapServer? It let you display your data in a webpage. Mapserver (version
>= 3.6) can deal with PostGIS. You can go to </FONT></SPAN></P>
<P><SPAN class=416372810-30122003><FONT color=#0000ff>- </FONT><FONT
color=#800080><A
href="http://mapserver.gis.umn.edu">http://mapserver.gis.umn.edu</A></FONT><FONT
color=#0000ff> to download it</FONT></SPAN></P>
<P><SPAN class=416372810-30122003><FONT color=#0000ff>- <A
href="http://postgis.refractions.net/docs/x556.html">http://postgis.refractions.net/docs/x556.html</A>
from PostGIS documentation in order to use it with PostGIS.
</FONT></SPAN></P>
<P><SPAN class=416372810-30122003><FONT color=#0000ff>Suppose that your
table is 'geomtable', your database is 'myGIS' and your user name is
talledo</FONT></SPAN></P>
<P><SPAN class=416372810-30122003><FONT color=#0000ff>I ) you had
to specifiy the extent of the image you want to display. So
do</FONT></SPAN></P>
<P><SPAN class=416372810-30122003><FONT color=#0000ff>select
xmin(extent(the_geom)),ymin(extent(the_geom)),xmax(extent(the_geom)),
ymax(extent(the_geom)) from geomtable</FONT></SPAN></P>
<P><SPAN class=416372810-30122003><FONT color=#0000ff>will give you 4
numbers: </FONT><FONT color=#ff0000><STRONG>Xmin, Ymin, Xmax, Ymax.
</STRONG></FONT><FONT color=#0000ff>Suppose now that you want an image
with width=</FONT><FONT color=#ff0000><STRONG>700. </STRONG></FONT><FONT
color=#0000ff>The height will be </FONT></SPAN></P>
<P><SPAN class=416372810-30122003><FONT color=#0000ff><FONT
color=#ff0000><STRONG>height</STRONG></FONT> = 700 *
abs(Ymax-Ymin)/abs(Xmax-Xmin)</FONT></SPAN></P>
<P><SPAN class=416372810-30122003><FONT color=#0000ff>II) In a file (for
example) C:\mymap.map, put</FONT></SPAN></P>
<P><SPAN class=416372810-30122003><FONT face=Arial color=#0000ff
size=2>MAP<BR> IMAGETYPE PNG<BR> EXTENT <STRONG><FONT
face="Times New Roman" color=#ff0000 size=3>Xmin Ymin Xmax
Ymax</FONT></STRONG><BR> SIZE <FONT color=#ff0000><STRONG>700
</STRONG><SPAN class=416372810-30122003><FONT color=#0000ff><FONT
size=3><FONT face="Times New Roman"><FONT
color=#ff0000><STRONG>height</STRONG></FONT> </FONT></FONT></FONT></SPAN></FONT><BR>
IMAGECOLOR 255 255 255 <BR>LAYER<BR> NAME " mylayer "<BR>
CONNECTIONTYPE postgis<BR> CONNECTION "user=talledo dbname=myGIS
host=localhost"<BR> DATA "the_geom from geomtable"<BR>
STATUS default<BR> TYPE POLYGON<BR>
CLASS<BR> COLOR 45 251 103<BR>
OUTLINECOLOR 255 0 0<BR>
LABEL<BR> FORCE
TRUE<BR> POSITION
CC<BR> SIZE
large<BR> OUTLINECOLOR 255 255
0<BR> BACKGROUNDCOLOR 255 255
204<BR> BACKGROUNDSHADOWCOLOR 221 221
221<BR> BACKGROUNDSHADOWSIZE 1
1<BR> MINDISTANCE
2<BR> COLOR 0 0 0<BR>
END #End of LABEL<BR> END #End of Class<BR> END
#Layer</FONT></SPAN><SPAN class=416372810-30122003><FONT face=Arial
color=#0000ff size=2><BR>END</FONT></SPAN></P>
<P><FONT face=Arial><FONT size=2><FONT color=#0000ff><SPAN
class=416372810-30122003>III) To display your data ,</SPAN><SPAN
class=416372810-30122003> type the URL <A
href="http://yourserver/cgi-bin/mapserv.exe?map=C:\mymap&mode=map">http://yourserver/cgi-bin/mapserv.exe?map=C:\mymap&mode=map</A></P></SPAN></FONT></FONT></FONT>
<P><SPAN class=416372810-30122003><FONT face=Arial color=#0000ff
size=2> > </FONT></SPAN><EM>This is because there are a lot
of examples on how to display data from a shape but I haven't found any
example about How I can display the data </EM><SPAN
class=416372810-30122003><FONT face=Arial color=#0000ff
size=2> <EM><FONT face="Times New Roman"><FONT color=#000000
size=3> ></FONT></FONT></EM> </FONT></SPAN><EM>using Postgis as
my DB</EM></P>
<P><SPAN class=416372810-30122003><FONT face=Arial color=#0000ff
size=2> > </FONT></SPAN><EM>Thanks in
Advance.</EM><SPAN><FONT face=Arial><FONT color=#0000ff
size=2> </FONT></FONT></SPAN></P>
<P><SPAN><FONT><FONT><FONT color=#0000ff><SPAN
class=416372810-30122003><FONT face=Arial size=2> Gistoolkit
(</FONT><A href="http://gistoolkit.sourceforge.net"><FONT face=Arial
size=2>http://gistoolkit.sourceforge.net</FONT></A><FONT face=Arial
size=2>) </FONT></SPAN><FONT face=Arial><FONT size=2> <SPAN
class=416372810-30122003> can display data from
PostGIS. </SPAN> <SPAN class=416372810-30122003> I''ve
already tried Gistoolkit but I had to use others java libraries in order
to use it:batik....</SPAN></FONT></FONT></FONT></FONT></FONT></SPAN></P>
<P><SPAN class=416372810-30122003><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </P><SPAN class=416372810-30122003>
<P><FONT size=2>TECHER Jean David<BR>Tél: 06-85-37-36-75<BR>e-mail:
davidtecher@yahoo.fr</FONT> </P>
<P> </SPAN></P>
<P><FONT face=Arial color=#0000ff size=2></FONT> </P>
<P><FONT face=Arial color=#0000ff size=2></FONT> </P></TD></TR>
<TR UNSELECTABLE="on" hb_tag="1">
<TD style="FONT-SIZE: 1pt" height=1 UNSELECTABLE="on">
<DIV id=hotbar_promo></DIV></TD></TR></TBODY></TABLE>
<BLOCKQUOTE id=fcf113b3>
<DIV class=RTE><FONT face=Arial color=#0000ff
size=2></FONT> </DIV></BLOCKQUOTE></DIV><BR clear=all>
<HR>
MSN Amor <A href="http://g.msn.com/8HMBES/2752??PS=">Busca tu ˝ naranja</A>
</BLOCKQUOTE></BODY></HTML>