You can subscribe to this list here.
2001 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(39) |
Dec
(70) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2002 |
Jan
(52) |
Feb
(168) |
Mar
(248) |
Apr
(143) |
May
(418) |
Jun
(558) |
Jul
(702) |
Aug
(311) |
Sep
(141) |
Oct
(350) |
Nov
(172) |
Dec
(182) |
2003 |
Jan
(320) |
Feb
(362) |
Mar
(356) |
Apr
(218) |
May
(447) |
Jun
(203) |
Jul
(745) |
Aug
(494) |
Sep
(175) |
Oct
(422) |
Nov
(554) |
Dec
(162) |
2004 |
Jan
(217) |
Feb
(353) |
Mar
(228) |
Apr
(407) |
May
(211) |
Jun
(270) |
Jul
(264) |
Aug
(198) |
Sep
(268) |
Oct
(227) |
Nov
(118) |
Dec
(47) |
2005 |
Jan
(207) |
Feb
(243) |
Mar
(297) |
Apr
(197) |
May
(281) |
Jun
(166) |
Jul
(164) |
Aug
(92) |
Sep
(155) |
Oct
(196) |
Nov
(189) |
Dec
(114) |
2006 |
Jan
(129) |
Feb
(219) |
Mar
(274) |
Apr
(213) |
May
(245) |
Jun
(220) |
Jul
(376) |
Aug
(347) |
Sep
(179) |
Oct
(493) |
Nov
(448) |
Dec
(339) |
2007 |
Jan
(304) |
Feb
(273) |
Mar
(237) |
Apr
(186) |
May
(215) |
Jun
(320) |
Jul
(229) |
Aug
(313) |
Sep
(331) |
Oct
(279) |
Nov
(347) |
Dec
(266) |
2008 |
Jan
(332) |
Feb
(280) |
Mar
(203) |
Apr
(277) |
May
(301) |
Jun
(356) |
Jul
(292) |
Aug
(203) |
Sep
(277) |
Oct
(142) |
Nov
(210) |
Dec
(239) |
2009 |
Jan
(250) |
Feb
(193) |
Mar
(174) |
Apr
(183) |
May
(342) |
Jun
(230) |
Jul
(292) |
Aug
(161) |
Sep
(204) |
Oct
(280) |
Nov
(281) |
Dec
(175) |
2010 |
Jan
(113) |
Feb
(106) |
Mar
(199) |
Apr
(166) |
May
(298) |
Jun
(147) |
Jul
(175) |
Aug
(192) |
Sep
(71) |
Oct
(79) |
Nov
(58) |
Dec
(55) |
2011 |
Jan
(83) |
Feb
(169) |
Mar
(142) |
Apr
(207) |
May
(311) |
Jun
(183) |
Jul
(218) |
Aug
(190) |
Sep
(158) |
Oct
(197) |
Nov
(93) |
Dec
(74) |
2012 |
Jan
(92) |
Feb
(50) |
Mar
(64) |
Apr
(45) |
May
(100) |
Jun
(70) |
Jul
(3) |
Aug
(1) |
Sep
(2) |
Oct
(5) |
Nov
(7) |
Dec
(4) |
2013 |
Jan
(6) |
Feb
(2) |
Mar
(2) |
Apr
(4) |
May
(3) |
Jun
|
Jul
(2) |
Aug
|
Sep
|
Oct
(1) |
Nov
(1) |
Dec
|
2014 |
Jan
(2) |
Feb
(2) |
Mar
(2) |
Apr
(3) |
May
(3) |
Jun
(1) |
Jul
|
Aug
(4) |
Sep
|
Oct
(1) |
Nov
(1) |
Dec
|
2015 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
(1) |
Dec
(1) |
2016 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
(1) |
Jul
|
Aug
(3) |
Sep
|
Oct
|
Nov
(1) |
Dec
|
2017 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: James M. <jma...@us...> - 2001-12-03 11:45:35
|
Update of /cvsroot/geotools/geotools/design/overview/images In directory usw-pr-cvs1:/tmp/cvs-serv13991/images Log Message: Directory /cvsroot/geotools/geotools/design/overview/images added to the repository |
From: James M. <jma...@us...> - 2001-12-03 11:44:38
|
Update of /cvsroot/geotools/geotools/design/overview In directory usw-pr-cvs1:/tmp/cvs-serv13649 Added Files: 080timeline.html Log Message: initial draft of release plan for 0.8.0 --- NEW FILE: 080timeline.html --- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <HTML> <HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html;CHARSET=iso-8859-1"> <META NAME="GENERATOR" Content="Visual Page 2.0 for Windows"> <META NAME="Author" Content="Linda Oxnard"> <TITLE>untitled</TITLE> </HEAD> <BODY> <H2>Release plan</H2> <P>The ongoing development in CVS is hard for end users to follow, and many are unwilling to download nightly builds. It's a long time since a formal release was made and, even then, there was no clear strategy to ensure stability.</P> <P>There is clearly an active community of skilled programmers who are able to take the GeoTools code and blend it with their own to produce the results that they want. There is, however, clearly a much larger audience of users who just want to put their maps on the Internet in interesting ways.</P> <P>We need therefore to set out a stratergy for producing stable releases, each of which has a target feature set and ancompanying demos and utilites. In order to help ensure stability in each release it has been proposed that we create a branch from the main development truck wich can then be worked on and stabalised away from current development activity.</P> <P ALIGN="CENTER"><IMG SRC="images/080timeline.gif" WIDTH="606" HEIGHT="198" ALIGN="BOTTOM" BORDER="0"></P> <P>The above figure helps to demonstrate this, on a given date the 0.8.x branch will be created and work will commence on making it as stable as possible for end uesrs. After a set period a release candidate will be announced along with, if possible, a small test suite. At this point the ONLY thing which should be happening on the 0.8.x branch is bug fixes. Assuming the release candidate goes well 0.8.0 can be announced, promoted and released. Work will then be focused back on the main branch. Should any bugs turn up once 0.8.0 is out the door it will still be possible to work on that branch in order to produce a bugfix release.</P> <P>The 0.8.0 Release</P> <P>For this release it is important to remove the majority of unstable and unfinished code so as not to present end users with a confusing array of unfinished or untested code. This will be quite a cull, and quite possibly this release will have less functionality than the previous 0.7.x release, but it will, hopefully, all work. Its not long to the 0.9 release and we can aim to have more things in place by then.</P> <P>Features</P> <P> <TABLE BORDER="1" WIDTH="100%"> <TR> <TD WIDTH="25%"><B>Version</B></TD> <TD WIDTH="25%"><B>Must have</B></TD> <TD WIDTH="25%"><B>Should have</B></TD> <TD WIDTH="25%"><B>Nice to have</B></TD> </TR> <TR> <TD WIDTH="25%">0.8 </TD> <TD WIDTH="25%">core geotools<BR> raster support<BR> shapefile support</TD> <TD WIDTH="25%"> </TD> <TD WIDTH="25%"> </TD> </TR> <TR> <TD WIDTH="25%">0.9</TD> <TD WIDTH="25%">GML 2.0 <A HREF="http://sourceforge.net/pm/task.php?func=detailtask&project_task_id=28692&group_id=4091&group_project_id=3095">#28692</A><BR> WMS 1.0<BR> Threaded Loading <A HREF="http://sourceforge.net/pm/task.php?func=detailtask&project_task_id=16439&group_id=4091&group_project_id=3095">#16439</A></TD> <TD WIDTH="25%">WFS<BR> <BR> PostGISDataSource</TD> <TD WIDTH="25%">MID / MIF Reader <A HREF="http://sourceforge.net/pm/task.php?func=detailtask&project_task_id=16438&group_id=4091&group_project_id=3095">#16438</A></TD> </TR> <TR> <TD WIDTH="25%">1.0</TD> <TD WIDTH="25%"> </TD> <TD WIDTH="25%"> </TD> <TD WIDTH="25%"> </TD> </TR> </TABLE> </P> <P>Examples</P> <P> <TABLE BORDER="1" WIDTH="100%"> <TR> <TD WIDTH="25%"><B>Version</B></TD> <TD WIDTH="25%"><B>Must have</B></TD> <TD WIDTH="25%"><B>Should have</B></TD> <TD WIDTH="25%"><B>Nice to have</B></TD> </TR> <TR> <TD WIDTH="25%">0.8</TD> <TD WIDTH="25%">Example1<BR> Example 2<BR> Example 3<BR> Example 4<BR> GraphApplet</TD> <TD WIDTH="25%">MultiTheme<BR> ImageExample </TD> <TD WIDTH="25%"> </TD> </TR> <TR> <TD WIDTH="25%">0.9</TD> <TD WIDTH="25%">MultiTheme</TD> <TD WIDTH="25%"> </TD> <TD WIDTH="25%"> </TD> </TR> <TR> <TD WIDTH="25%">1.0</TD> <TD WIDTH="25%"> </TD> <TD WIDTH="25%"> </TD> <TD WIDTH="25%"> </TD> </TR> </TABLE> </P> <P>Utils</P> <P> <TABLE BORDER="1" WIDTH="100%"> <TR> <TD WIDTH="25%"><B>Version</B></TD> <TD WIDTH="25%"><B>Must have</B></TD> <TD WIDTH="25%"><B>Should have</B></TD> <TD WIDTH="25%"><B>Nice to have</B></TD> </TR> <TR> <TD WIDTH="25%">0.8</TD> <TD WIDTH="25%"> </TD> <TD WIDTH="25%">ShapeView<BR> DbfInfo<BR> DbfList<BR> Ungen2Shape</TD> <TD WIDTH="25%">ShapefileJoiner </TD> </TR> <TR> <TD WIDTH="25%">0.9</TD> <TD WIDTH="25%">ShapeView<BR> DbfInfo<BR> DbfList<BR> Ungen2Shape</TD> <TD WIDTH="25%">ShapefileJoiner </TD> <TD WIDTH="25%">Mif2Shp<BR> GML2Shp</TD> </TR> <TR> <TD WIDTH="25%">1.0</TD> <TD WIDTH="25%"> </TD> <TD WIDTH="25%"> </TD> <TD WIDTH="25%"> </TD> </TR> </TABLE> </P> <P>Data</P> <P> <TABLE BORDER="1" WIDTH="100%"> <TR> <TD WIDTH="25%"><B>Version</B></TD> <TD WIDTH="25%"><B>Must have</B></TD> <TD WIDTH="25%"><B>Should have</B></TD> <TD WIDTH="25%"><B>Nice to have</B></TD> </TR> <TR> <TD WIDTH="25%">0.8</TD> <TD WIDTH="25%"> </TD> <TD WIDTH="25%">Misc shapefile to overlay US states</TD> <TD WIDTH="25%">Nice gif/jpg of world</TD> </TR> <TR> <TD WIDTH="25%">0.9</TD> <TD WIDTH="25%"> </TD> <TD WIDTH="25%">open PostGIS example database</TD> <TD WIDTH="25%"> </TD> </TR> <TR> <TD WIDTH="25%">1.0</TD> <TD WIDTH="25%"> </TD> <TD WIDTH="25%"> </TD> <TD WIDTH="25%"> </TD> </TR> </TABLE> </BODY> </HTML> |
From: Artur H. <ko...@us...> - 2001-12-02 22:20:06
|
Update of /cvsroot/geotools/unittestsgen In directory usw-pr-cvs1:/tmp/cvs-serv26592 Log Message: Status: Vendor Tag: kobit Release Tags: start N unittestsgen/build.xml N unittestsgen/prj.el N unittestsgen/MANIFEST.MF N unittestsgen/src/testsgen/package.html N unittestsgen/src/testsgen/TestsGen.java N unittestsgen/src/testsgen/GenerateTests.java N unittestsgen/src/testsgen/ifc/package.html N unittestsgen/src/testsgen/ifc/PropertyIfc.java N unittestsgen/src/testsgen/ifc/LogIfc.java N unittestsgen/src/testsgen/ifc/ParsedSourceIfc.java N unittestsgen/src/testsgen/ifc/SrcParserIfc.java N unittestsgen/src/testsgen/ifc/DirWalkerIfc.java N unittestsgen/src/testsgen/ifc/CodeGenIfc.java N unittestsgen/src/testsgen/wttools/LogImpl.java N unittestsgen/src/testsgen/wttools/DirWalkerImpl.java No conflicts created by this import ***** Bogus filespec: - Imported sources |
From: James M. <jma...@us...> - 2001-12-02 13:47:14
|
Update of /cvsroot/geotools/geotools/src/uk/ac/leeds/ccg/geotools In directory usw-pr-cvs1:/tmp/cvs-serv12943/uk/ac/leeds/ccg/geotools Modified Files: ClassificationShader.java Log Message: Reimplemetned the 'show counts' option for the keys Index: ClassificationShader.java =================================================================== RCS file: /cvsroot/geotools/geotools/src/uk/ac/leeds/ccg/geotools/ClassificationShader.java,v retrieving revision 1.14 retrieving revision 1.15 diff -w -C2 -d -r1.14 -r1.15 *** ClassificationShader.java 2001/11/15 12:47:53 1.14 --- ClassificationShader.java 2001/12/02 13:47:11 1.15 *************** *** 64,68 **** */ public void setRange(GeoData d){ ! double temp = d.getMissingValueCode(); if(temp!=missingCode){ --- 64,69 ---- */ public void setRange(GeoData d){ ! System.out.println("Replacing data "+data+" with new one "+d); ! data=d;//not sure if this is a good idea... double temp = d.getMissingValueCode(); if(temp!=missingCode){ *************** *** 118,124 **** Iterator binList = classifier.getBins().iterator(); int i=1; while(binList.hasNext()){ Bin bin = (Bin)binList.next(); ! RangeItem k = new RangeItem(bin,color.getColor(i),bin.toString()); System.out.println("Adding "+k); keys.addElement(k); --- 119,131 ---- Iterator binList = classifier.getBins().iterator(); int i=1; + + ClassifierStats stats = new ClassifierStats(); + int binCounts[] = stats.countForEachBin(classifier,data); + String countString = ""; while(binList.hasNext()){ Bin bin = (Bin)binList.next(); ! ! if(this.showInCatCount) countString = " ["+binCounts[i-1]+"]"; ! RangeItem k = new RangeItem(bin,color.getColor(i),bin.toString()+ countString); System.out.println("Adding "+k); keys.addElement(k); |
From: James M. <jma...@us...> - 2001-12-01 15:48:02
|
Update of /cvsroot/geotools/geotools/src/demonstrations/maps In directory usw-pr-cvs1:/tmp/cvs-serv24499/demonstrations/maps Added Files: worldview.gif Log Message: small sample map for use with ImageExample --- NEW FILE: worldview.gif --- GIF87ah´ Ä¢ñ!DGò1u¹ýaV{qÖ{XBñ1äGXDÄøj$SÛF9iµg½'SäS|ÉÌ<"%Âb|L]nD"IÉÇÔåöQNZí $ñ1D23SJ)!" äcêr»H$;B"äcê^P©Ëí£´:I(þÅGOñ1u¹I¡|L]¦øGò1Õbw×J$~H|L]nå¤5X"bfñOâcêr/ÉÇÔÅ E"ÊÇÔåö$ÿÉÇÔåöQN*HBÄ,H>ÅÇÔåN©A eÉÇÔåö'¡|´R(SÛF9Id$1"âÈ|¡øºÜFò1uY(©ËS>¦.R|¹ ùºÜþ0ÊùH J"B$D"(Å&ùJñ1uI>¦.·ÿ#±I>¦.ÅÇÔ ùzÿH>¦.·?Ä ù(FññH>¦R|L]6©ËíïHl©Hñ15I>¦fE ò1u¹ýá"ñMä[F°A¡|L©{$SÛò#âc*ÿH~DÿÄÝ! åcêrûCHâ P,3 eGDHP"Mò1âcêP(SÛß8$/"¤XQ|L]î#ùGñäcêrûÃFâÜÝÉ8¡Ørw!ÊÇ´¡øj¤$H>¦.·?#±I>ZDñQ(>¦.7É1£ø$S;)>ÉÇÔ=$BñODBHRDñ1MäcR|LE1$S¢D|L½[äîâcêrû;"S âc&ÉG )fFñ1MD(JDü¤øHòã(>¦*ÉÇÔe¥H @±EDÎI@I©Ëí£ôùhS6f|L]6qwGqÄH>&Å?©Ë @ò1u¹ý á[ÄE/äcêrû+? |
From: James M. <jma...@us...> - 2001-11-30 21:08:10
|
Update of /cvsroot/geotools/website/php In directory usw-pr-cvs1:/tmp/cvs-serv25221 Modified Files: geotools_base.php Log Message: dded getting started to the sidebar Index: geotools_base.php =================================================================== RCS file: /cvsroot/geotools/website/php/geotools_base.php,v retrieving revision 1.2 retrieving revision 1.3 diff -w -C2 -d -r1.2 -r1.3 *** geotools_base.php 2001/11/29 18:18:46 1.2 --- geotools_base.php 2001/11/30 20:40:14 1.3 *************** *** 50,54 **** ! function sidebar($elements=array("index","sourceforge","mailinglists","developers")) { /* --- 50,54 ---- ! function sidebar($elements=array("index","gettingstarted","sourceforge","mailinglists","developers")) { /* |
From: Cameron S. <cam...@us...> - 2001-11-30 01:49:00
|
Update of /cvsroot/geotools/geotools/src/uk/ac/leeds/ccg/geotools In directory usw-pr-cvs1:/tmp/cvs-serv16569 Modified Files: MultiLayer.java Log Message: Turned off debugging Index: MultiLayer.java =================================================================== RCS file: /cvsroot/geotools/geotools/src/uk/ac/leeds/ccg/geotools/MultiLayer.java,v retrieving revision 1.13 retrieving revision 1.14 diff -w -C2 -d -r1.13 -r1.14 *** MultiLayer.java 2001/11/19 18:17:07 1.13 --- MultiLayer.java 2001/11/30 01:48:57 1.14 *************** *** 12,16 **** public class MultiLayer extends SimpleLayer implements LayerChangedListener{ ! static boolean DEBUG=true; static String DBC="ML->"; Vector layers = new Vector(); --- 12,16 ---- public class MultiLayer extends SimpleLayer implements LayerChangedListener{ ! static boolean DEBUG=false; static String DBC="ML->"; Vector layers = new Vector(); |
From: Cameron S. <cam...@us...> - 2001-11-30 01:48:20
|
Update of /cvsroot/geotools/geotools/src/uk/ac/leeds/ccg/geotools In directory usw-pr-cvs1:/tmp/cvs-serv16370 Modified Files: ImageMarker.java Log Message: Turned off debugging Index: ImageMarker.java =================================================================== RCS file: /cvsroot/geotools/geotools/src/uk/ac/leeds/ccg/geotools/ImageMarker.java,v retrieving revision 1.2 retrieving revision 1.3 diff -w -C2 -d -r1.2 -r1.3 *** ImageMarker.java 2001/11/21 03:09:21 1.2 --- ImageMarker.java 2001/11/30 01:48:15 1.3 *************** *** 13,17 **** ImageObserver { ! boolean DEBUG=true; // image[0] = normal image // image[1] = highlighted image --- 13,17 ---- ImageObserver { ! boolean DEBUG=false; // image[0] = normal image // image[1] = highlighted image |
From: James M. <jma...@us...> - 2001-11-29 21:14:51
|
Update of /cvsroot/geotools/geotools/src/demonstrations In directory usw-pr-cvs1:/tmp/cvs-serv23880/demonstrations Modified Files: readme.html Log Message: Spelling and grammar corrections Index: readme.html =================================================================== RCS file: /cvsroot/geotools/geotools/src/demonstrations/readme.html,v retrieving revision 1.1 retrieving revision 1.2 diff -w -C2 -d -r1.1 -r1.2 *** readme.html 2001/11/28 19:08:21 1.1 --- readme.html 2001/11/29 21:14:44 1.2 *************** *** 5,8 **** --- 5,9 ---- <META HTTP-EQUIV="Content-Type" CONTENT="text/html;CHARSET=iso-8859-1"> <META NAME="GENERATOR" Content="Visual Page 2.0 for Windows"> + <META NAME="Author" Content="Linda Oxnard"> <TITLE>GeoTools demos, examples and tutorials package</TITLE> </HEAD> *************** *** 11,44 **** <H1>GeoTools Demos and Tutorials Package</H1> ! <H2>Introduction</H2> ! <P>The GeoTools open source java mapping toolkit is a flexable library of rutines and objects that can be used ! to build interactive web based applets as well as stand allone applications.</P> ! <P>The GeoTools package is not an application in its own right however, only a toolkit, so in order to place a ! map on the web, or into an application small amounts of additonal code is required.</P> ! <P>This package aims to provide a suite of small applets, and latter applications, that can either be used 'as ! is', or used as a starting point for more addvanced programs. (Or you might just want to canabalise bits out of ! each one)</P> ! <H2>Requirements</H2> ! <P>GeoTools 0.7.9dev1 (included in jars folder) <BR> ! Java 1.1 or later<BR> ! suns Collections package (available in full from the geotools ftp site, jar file can be found in jars directory)</P> <P></P> ! <H2>The Demos</H2> ! <P>The following demonstrations have been ilustated with the aim of providing clear examples of GeoTools usage, as a result ! there is a minimum of non-geotools related code, for example code for error handling is not as much in evidence ! as perhaps it should be.</P> <P> <H3>Example 1</H3> ! <P><A HREF="Example1.html">View</A><B></B></P> ! <P><B>Description:</B></P> ! <P>A very simple applet that shows how a shapefile can be read and displayd in an applet along with a standard toolbar.</P> <P><B>Customizing:</B></P> ! <P>The applet tag contains a single param tag 'shapefile' that specifies the relative address of the shapefile to load.</P> --- 12,97 ---- <H1>GeoTools Demos and Tutorials Package</H1> ! <P><A HREF="#Introduction">Introduction</A><BR> ! <A HREF="#Overview">Overview of files</A><BR> ! <A HREF="#Requirements">Requirements</A><BR> ! <A HREF="#Demonstrations">Demonstrations</A></P> ! <H2><A NAME="Introduction"></A>Introduction</H2> ! <P>The GeoTools open source java mapping toolkit is a flexible library of routines and objects that can be used ! to build interactive web-based applets, as well as stand alone applications.</P> ! ! <P>The GeoTools package is not an application in its own right, however, only a toolkit. So, in order to place ! a map on the web, or into an application, small amounts of additional code are required.</P> ! ! <P>This package aims to provide a suite of small applets that can either be used 'as is', or as a starting point ! for more advanced programs. (Alternatively, you might just want to cannibalise bits out of each one).</P> ! <H2><A NAME="Overview"></A>Overview of files</H2> ! <P>This directory contains everything you need to get started with GeoTools, including the latest release of GeoTools ! together with support files, sample maps and example web pages.</P> ! ! <P>In the directory that you find this file in, you will see a series of examples. For each there are three files: ! an <B>.html</B>, a <B>.java</B> and a <B>.class</B> file (e.g. Example1.html, Example1.java and Example1.class).</P> ! ! <P>You will also find two directories: one called <B>maps</B>, which contains the maps used in the examples, and ! one called <B>jars</B>, which contains the GeoTools toolkit itself and some support files that it uses.</P> ! ! <P>So, in total, we have:</P> ! ! <UL> ! <LI>readme.html - this file ! <LI>example1.html - a web page which contains a demo ! <LI>example1.java - the source code for a demo ! <LI>example1.class - the compiled (ready to use) version of a demo ! <LI>... ! <UL> ! <LI>jars/geotools.jar - The GeoTools toolkit ! <LI>jars/support.jar - Some extra code that supports GeoTools ! <LI>jars/collections.jar - A standard extension from sun for java 1.1 ! </UL> ! <LI> ! <UL> ! <LI>maps/statepop.zip - a simple map of the US used by the demos ! </UL> ! </UL> ! ! <H2><A NAME="Requirements"></A>Requirements</H2> ! <P>Java 1.1 or later: either on its own or built into a browser. You will find Java built into most modern browsers ! by default.</P> <P></P> ! <H2><A NAME="Demonstrations"></A>Demonstrations</H2> ! <P>The following demonstrations have been put together with the aim of providing clear examples of GeoTools usage. ! As a result, there is a minimum of non-GeoTools related code. For example, code for error handling is not as ! much in evidence as would normally be the case.</P> ! ! <P>If you are a non-programmer, then you will probably only be interested in the html files. Try each demo and ! see which one does what you need. As the demos progress, they add more features. In order to use your own maps, ! you will need to modify the tags in the html file. You should not need to worry about the code found in the .java ! files yet.</P> ! ! <P>Each demonstration listed below takes the following format:</P> ! <H3>Title - the name of the demo</H3> ! <P>Link - an active link which will take you to a page which shows the demo running</P> ! ! <P><B>Description: </B>- a quick overview of what the demo does</P> ! ! <P><B>Customizing: -</B>a list of things which can be changed from the html tags without the need to re-program ! anything</P> ! ! <P><B>Key classes: -</B>a list of GeoTools components that were introduced for the first time in this demo. Don't ! worry about this if you are not a programmer</P> ! ! <P>Right, on with the show...</P> ! <P> <H3>Example 1</H3> ! <P><A HREF="Example1.html">View</A></P> <P><B>Description:</B></P> ! <P>A very simple applet that shows how a shapefile can be read and displayed in an applet along with a standard toolbar.</P> <P><B>Customizing:</B></P> ! <P>The applet tag contains a single param tag ('shapefile') that specifies the relative address of the shapefile to load.</P> *************** *** 48,137 **** geotools.Theme<BR> geotools.Viewer<BR> ! wideges.ToolBar</P> <H3></H3> - <H3>Example 2</H3> ! <P><A HREF="Example2.html">View</A><B></B></P> <P><B>Description:</B></P> ! <P>An extension of example1 that show how to set up tool tips</P> <P><B>Customizing:</B></P> <P>The applet tag contains two tags :<BR> ! 'shapefile' the relative address of the shapefile to load.<BR> ! 'tooltip' the name of the colum to pull the tooltips from</P> ! <P><B>Key classes introduced</B></P> <P>geotools.GeoData</P> ! <P></P> <H3>Example 3</H3> ! <P><A HREF="Example3.html">View</A><B></B></P> <P><B>Description:</B></P> ! <P>An extension of example2 that show how to shade a map</P> <P><B>Customizing:</B></P> <P>The applet tag contains three tags :<BR> ! 'shapefile' the relative address of the shapefile to load.<BR> ! 'tooltip' the name of the colum to pull the tooltips from<BR> ! 'shadeby' the name of a data column </P> ! <P><B>Key classes introduced</B></P> <P>geotools.Shader<BR> geotools.ClassificationShader<BR> ! geotools.Key<BR> ! </P> ! <H3>Example 4</H3> ! <P><A HREF="Example4.html">View</A><B></B></P> <P><B>Description:</B></P> ! <P>A simple extention of Example 3 introducing a new navigation widget</P> <P><B>Customizing:</B></P> <P>The applet tag contains three tags :<BR> ! 'shapefile' the relative address of the shapefile to load.<BR> ! 'tooltip' the name of the colum to pull the tooltips from<BR> ! 'shadeby' the name of a data column </P> <P><B>Key classes introduced</B></P> ! <P>widgets.ZoomLevelPicker<BR> ! </P> ! <H3>GraphApplet Example</H3> ! <P><A HREF="GraphApplet.html">View</A><B></B></P> <P><B>Description:</B></P> ! <P>A fairly complete applet showing how a graph and chart can be linked through a highlight manager.</P> <P><B>Customizing:</B></P> <P>The applet tag contains a large number of tags :<BR> ! param name="shapefile" value="nameOfShapefileWithoutExtension"<br> ! param name="tooltip" value="nameOfColumn"<br> ! param name="groups" value="numberOfGroups"<br> ! param name="groupXcol" value="nameOfColumn" // for each group<br> ! param name="groupXcolor" value="#rrggbb hex colour reference"<br> ! param name="groupXname" value="Description of group"<br> ! <P><B>Key classes introduced</B></P> <P>widgets.PieChart<BR> ! geotools.GeoLabel<br> ! geotools.HighlightManager<br> ! ! </P> ! </BODY> --- 101,182 ---- geotools.Theme<BR> geotools.Viewer<BR> ! widgets.ToolBar</P> <H3></H3> <H3>Example 2</H3> ! <P><A HREF="Example2.html">View</A></P> <P><B>Description:</B></P> ! <P>An extension of Example1 that shows how to set up tooltips</P> <P><B>Customizing:</B></P> <P>The applet tag contains two tags :<BR> ! 'shapefile' - the relative address of the shapefile to load<BR> ! 'tooltip' - the name of the column to pull the tooltips from</P> ! <P><B>Key classes introduced:</B></P> <P>geotools.GeoData</P> ! <P> <H3>Example 3</H3> ! <P><A HREF="Example3.html">View</A></P> <P><B>Description:</B></P> ! <P>An extension of Example2 that shows how to shade a map</P> <P><B>Customizing:</B></P> <P>The applet tag contains three tags:<BR> ! 'shapefile' - the relative address of the shapefile to load<BR> ! 'tooltip' - the name of the column to pull the tooltips from<BR> ! 'shadeby' - the name of a data column</P> ! <P><B>Key classes introduced:</B></P> <P>geotools.Shader<BR> geotools.ClassificationShader<BR> ! geotools.Key</P> <H3>Example 4</H3> ! <P><A HREF="Example4.html">View</A></P> <P><B>Description:</B></P> ! <P>A simple extension of Example3, introducing a new navigation widget</P> <P><B>Customizing:</B></P> <P>The applet tag contains three tags:<BR> ! 'shapefile' - the relative address of the shapefile to load<BR> ! 'tooltip' - the name of the column to pull the tooltips from<BR> ! 'shadeby' - the name of a data column</P> <P><B>Key classes introduced</B></P> ! <P>widgets.ZoomLevelPicker</P> <H3>GraphApplet Example</H3> ! <P><A HREF="GraphApplet.html">View</A></P> <P><B>Description:</B></P> ! <P>A fairly complete applet showing how a map and graph can be linked through a highlight manager.</P> <P><B>Customizing:</B></P> <P>The applet tag contains a large number of tags:<BR> ! param name="shapefile" value="nameOfShapefileWithoutExtension"<BR> ! param name="tooltip" value="nameOfColumn"<BR> ! param name="groups" value="numberOfGroups"<BR> ! param name="groupXcol" value="nameOfColumn" // for each group<BR> ! param name="groupXcolor" value="#rrggbb hex colour reference"<BR> ! param name="groupXname" value="Description of group"</P> ! <P><B>Key classes introduced:</B></P> <P>widgets.PieChart<BR> ! geotools.GeoLabel<BR> ! geotools.HighlightManager </BODY> |
From: James M. <jma...@us...> - 2001-11-29 19:45:15
|
Update of /cvsroot/geotools/website In directory usw-pr-cvs1:/tmp/cvs-serv26566 Modified Files: .filelist Log Message: changed formatting Index: .filelist =================================================================== RCS file: /cvsroot/geotools/website/.filelist,v retrieving revision 1.2 retrieving revision 1.3 diff -w -C2 -d -r1.2 -r1.3 *** .filelist 2001/11/29 19:37:35 1.2 --- .filelist 2001/11/29 19:40:52 1.3 *************** *** 40,48 **** # respectively. # ! <strong>Demos and utils nightly packages (New users start here!)</strong> ! Demos pagage (includes latest geotools.jar + support files),%latest%,daily/lib/demos.zip ! Utilities package (includes latest geotools.jar),%latest%,daily/lib/utils.zip # ! <strong>Nightly builds - Java 1.1 (for use with most browsers)</strong> jar file,%latest%,daily/lib/GeoTools-%latest%.jar,Change log file;daily/ChangeLog.txt source file,%latest%,daily/lib/GeoToolsSrc-%latest%.zip --- 40,48 ---- # respectively. # ! <strong>Demos and utils nightly packages <br>(New users start here)</strong> ! Demos package,%latest%,daily/lib/demos.zip ! Utilities package,%latest%,daily/lib/utils.zip # ! <strong>Nightly builds - Java 1.1 <br>(for use with most browsers)</strong> jar file,%latest%,daily/lib/GeoTools-%latest%.jar,Change log file;daily/ChangeLog.txt source file,%latest%,daily/lib/GeoToolsSrc-%latest%.zip |
From: James M. <jma...@us...> - 2001-11-29 19:37:38
|
Update of /cvsroot/geotools/website In directory usw-pr-cvs1:/tmp/cvs-serv25597 Modified Files: .filelist Log Message: reordered files and added more info titles Index: .filelist =================================================================== RCS file: /cvsroot/geotools/website/.filelist,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -w -C2 -d -r1.1.1.1 -r1.2 *** .filelist 2001/11/28 22:09:47 1.1.1.1 --- .filelist 2001/11/29 19:37:35 1.2 *************** *** 40,45 **** # respectively. # ! <strong>Nightly builds - Java 1.1</strong> ! jar file,%latest%,daily/lib/GeoTools-%latest%.jar,A change log file;daily/ChangeLog.txt source file,%latest%,daily/lib/GeoToolsSrc-%latest%.zip # --- 40,49 ---- # respectively. # ! <strong>Demos and utils nightly packages (New users start here!)</strong> ! Demos pagage (includes latest geotools.jar + support files),%latest%,daily/lib/demos.zip ! Utilities package (includes latest geotools.jar),%latest%,daily/lib/utils.zip ! # ! <strong>Nightly builds - Java 1.1 (for use with most browsers)</strong> ! jar file,%latest%,daily/lib/GeoTools-%latest%.jar,Change log file;daily/ChangeLog.txt source file,%latest%,daily/lib/GeoToolsSrc-%latest%.zip # *************** *** 52,57 **** Collections for Java1.1,20000101,daily/lib/collections.jar # - <strong>Demos tutorials and utils</strong> - zip archive,%latest%,daily/lib/demos.zip - zip archive,%latest%,daily/lib/utils.zip - zip archive,%latest%,daily/lib/docs.zip \ No newline at end of file --- 56,57 ---- |
From: James M. <jma...@us...> - 2001-11-29 19:35:16
|
Update of /cvsroot/geotools/website/help In directory usw-pr-cvs1:/tmp/cvs-serv24747 Modified Files: enduser.html Log Message: Changed reference to download site Index: enduser.html =================================================================== RCS file: /cvsroot/geotools/website/help/enduser.html,v retrieving revision 1.2 retrieving revision 1.3 diff -w -C2 -d -r1.2 -r1.3 *** enduser.html 2001/11/29 10:14:12 1.2 --- enduser.html 2001/11/29 19:35:13 1.3 *************** *** 19,25 **** <H2>Things to get:</H2> ! <P>You should download the latest copy of the GeoTools examples and demos package. This comes in a file named demos.zip. ! At the time of writing, this is version 1.1 which can be downloaded from the main GeoTools <A HREF="http://sourceforge.net/project/showfiles.php?group_id=4091">download ! site.</A></P> <P>Don't worry about all of the other files that are available there, for the moment. You will only really need --- 19,24 ---- <H2>Things to get:</H2> ! <P>You should download the latest copy of the GeoTools examples and demos package. This comes in a file named demos.zip ! which can be downloaded from the GeoTools <A HREF="http://geotools.org/dload.php">download site.</A></P> <P>Don't worry about all of the other files that are available there, for the moment. You will only really need *************** *** 34,55 **** <P>Hopefully, you now have a copy of demos.zip and a Java-enabled web browser. So let's run quickly through getting the demos running.</P> - <P>First, unpack the zip archive using your favourite archive tool. If you have no access to any tool on your operating system for dealing with zip files, then submit a <A HREF="http://sourceforge.net/tracker/?group_id=4091">support request </A>and we will look at getting the files to you in another format.</P> - <P>Once you have unpacked it, you should have a file called readme.html and a directory called 'demonstrations'. <BR> Open the readme.html file in your browser and click on 'view' under Example 1. This will open one of the pages in the demonstrations folder which, after a short pause, should display a fairly plain map of the US.</P> - <P>If the map fails to appear, then take a look at the<A HREF="#trouble"> trouble shooting</A> section at the end of this page.</P> ! ! <P>Assuming that you have got a map on the screen, then try using the three buttons at the bottom of the map. ! Click on the 'zoom' button and then drag a box out on a part of the map. The map will zoom in to the area you ! selected. Click the 'pan' button and then click and hold the left mouse button over the map to drag the map ! around. Finally, click the 'reset' button to return the view to one showing the whole of the US.</P> ! <P>You can go back to the readme.html page and try some of the other examples if you want to see some more examples of GeoTools in action. <BR> --- 33,49 ---- <P>Hopefully, you now have a copy of demos.zip and a Java-enabled web browser. So let's run quickly through getting the demos running.</P> <P>First, unpack the zip archive using your favourite archive tool. If you have no access to any tool on your operating system for dealing with zip files, then submit a <A HREF="http://sourceforge.net/tracker/?group_id=4091">support request </A>and we will look at getting the files to you in another format.</P> <P>Once you have unpacked it, you should have a file called readme.html and a directory called 'demonstrations'. <BR> Open the readme.html file in your browser and click on 'view' under Example 1. This will open one of the pages in the demonstrations folder which, after a short pause, should display a fairly plain map of the US.</P> <P>If the map fails to appear, then take a look at the<A HREF="#trouble"> trouble shooting</A> section at the end of this page.</P> ! <P>Assuming that you have got a map on the screen, then try using the three buttons at the bottom of the map. Click ! on the 'zoom' button and then drag a box out on a part of the map. The map will zoom in to the area you selected. ! Click the 'pan' button and then click and hold the left mouse button over the map to drag the map around. ! Finally, click the 'reset' button to return the view to one showing the whole of the US.</P> <P>You can go back to the readme.html page and try some of the other examples if you want to see some more examples of GeoTools in action. <BR> *************** *** 71,75 **** <P>In the case of Example 1, the files that it needs are:</P> - <P>demonstrations\Example1.html <BR> demonstrations\Example1.class <BR> --- 65,68 ---- *************** *** 77,111 **** demonstrations\jars\collections.jar <BR> demonstrations\maps\statepop.zip</P> - <P>Taking a look at each file in turn, the first is the web page itself. If you open it up in an editor you will see that, for the main part, it is just like any other html page. The interesting part is the section marked out in the applet tag:</P> - <P><APPLET ARCHIVE="jars/geotools.jar,jars/collections.jar" CODE="Example1.class" WIDTH="430" HEIGHT="270" ALIGN="BOTTOM"> <BR> <PARAM NAME="shapefile" VALUE="maps/statepop"> <BR> </APPLET></P> - <P>Pulling this apart, we see that it first states that an applet is to be used. The<B> archive</B> tag provides the location of the two support libraries - geotools.jar and collections.jar. <BR> The <B>code</B> tag gives the name of the class file to use, whilst the <B>width</B>, <B>height</B> and <B>align</B> tags say how big the applet should be.</P> - <P>Next there is one <B>param</B> tag. This is a parameter used by the applet. In this case, it is named '<B>shapefile'</B> and takes the value of the location of the map file to use. Note that the '.zip' extension is not given.</P> - <P>Finally, the applet tag is closed and the rest of the page is just standard html.</P> - <P>The geotools.jar and collections.jar file are just library files and are required by every GeoTools applet. There is nothing you need to change with these files.</P> - <P>If you open the statepop.zip file using an archive tool, you will see that it actually contains three files: ! .shp, .shx and .dbf. GeoTools only needs the .shp and .dbf files but most shapefiles have all three and ! later versions of GeoTools may make use of the .shx file (which is an index), so it's good to have it available. ! <BR> <H2>Putting your own map on the web</H2> <P>Assuming that you have a shapefile of your own that you want to put onto a web site, how do you go about it?</P> - <P>Start with example 1, as this is the easiest to set up: <BR> Make a copy of Example1.html called, for example, MyMap.html <BR> --- 70,95 ---- demonstrations\jars\collections.jar <BR> demonstrations\maps\statepop.zip</P> <P>Taking a look at each file in turn, the first is the web page itself. If you open it up in an editor you will see that, for the main part, it is just like any other html page. The interesting part is the section marked out in the applet tag:</P> <P><APPLET ARCHIVE="jars/geotools.jar,jars/collections.jar" CODE="Example1.class" WIDTH="430" HEIGHT="270" ALIGN="BOTTOM"> <BR> <PARAM NAME="shapefile" VALUE="maps/statepop"> <BR> </APPLET></P> <P>Pulling this apart, we see that it first states that an applet is to be used. The<B> archive</B> tag provides the location of the two support libraries - geotools.jar and collections.jar. <BR> The <B>code</B> tag gives the name of the class file to use, whilst the <B>width</B>, <B>height</B> and <B>align</B> tags say how big the applet should be.</P> <P>Next there is one <B>param</B> tag. This is a parameter used by the applet. In this case, it is named '<B>shapefile'</B> and takes the value of the location of the map file to use. Note that the '.zip' extension is not given.</P> <P>Finally, the applet tag is closed and the rest of the page is just standard html.</P> <P>The geotools.jar and collections.jar file are just library files and are required by every GeoTools applet. There is nothing you need to change with these files.</P> <P>If you open the statepop.zip file using an archive tool, you will see that it actually contains three files: ! .shp, .shx and .dbf. GeoTools only needs the .shp and .dbf files but most shapefiles have all three and later ! versions of GeoTools may make use of the .shx file (which is an index), so it's good to have it available. <BR> <H2>Putting your own map on the web</H2> <P>Assuming that you have a shapefile of your own that you want to put onto a web site, how do you go about it?</P> <P>Start with example 1, as this is the easiest to set up: <BR> Make a copy of Example1.html called, for example, MyMap.html <BR> *************** *** 113,119 **** them into a single .zip file). <BR> Change the <B>param</B> tag in MyMap.html so that the value is set to the name and location of your shapefile.</P> - <P>Open the html page in your browser and your map should appear.</P> - <P>GeoTools requires no server-side support so, provided all of the files needed are placed onto your web site, the map should be available for all to see. <BR> --- 97,101 ---- *************** *** 124,130 **** Example 2 adds one more parameter which allows the map to show tooltips (these are small boxes which pop up to provide information about the feature under the mouse cursor).</P> - <P>If you look at the applet tag for Example 2, you will see the following:</P> - <P><APPLET ARCHIVE="jars/geotools.jar,jars/collections.jar" CODE="Example2.class" WIDTH="430" HEIGHT="270" ALIGN="BOTTOM"> <BR> --- 106,110 ---- *************** *** 132,136 **** <PARAM NAME="tooltip" VALUE="STATE_NAME"> <BR> </APPLET></P> - <P>The new parameter has the name <B>tooltip</B> and its value is set to the name of a column of data which can be found in the .dbf file, in this case <B>STATE_NAME</B>. <BR> --- 112,115 ---- *************** *** 138,145 **** on your map. Note that the applet tag now has <B>CODE</B> set to <B>Example2.class</B>. You cannot just add a tooltip <B>param</B> tag to the Example1 html file, as that applet is not set up to display them.</P> - <P>Example 3 extends the concept in a similar way. This time, the name of a numeric column is given and GeoTools uses this to shade the map in. In this case, the column <B>UNEMPLOY</B> is used which represents unemployment.</P> - <P><APPLET ARCHIVE="jars/geotools.jar,jars/collections.jar" CODE="Example3.class" WIDTH="430" HEIGHT="270" ALIGN="BOTTOM"> <BR> --- 117,122 ---- *************** *** 148,160 **** <PARAM NAME="tooltip" VALUE="STATE_NAME"> <BR> </APPLET></P> - <P>One interesting feature of this applet is that, if you double click on the key, you will be shown a box which allows you to change the way the shading is performed. <BR> Again, if you know the name of a numeric column in your shapefile then you can edit the <B>param</B> tags so that your map is shaded using that data.</P> - <P>Example 4 doesn't add any new parameters, but instead includes an additional control widget which makes it possible to set zoom levels.</P> - <P>The final demo in the package, at the time of writing, is the GraphApplet demo which shows some of the more interactive capabilities of GeoTools. Try taking a look at the <B>param</B> tags in that demo and see if you can --- 125,134 ---- *************** *** 170,179 **** <A HREF="http://geotools.sourceforge.net/demos.php">http://geotools.sourceforge.net/demos.php</A> <BR> Many of these can be configured using <B>param</B> tags and may do what you need.</P> - <P>If none of them are appropriate, then your second option is to get someone, possibly us, to put together a custom applet that does what you need. If you represent a wealthy corporation with a budget burning a hole in your pocket, then you can commision us to build a custom solution. If not, then one of us should be able to help you out in our spare time.</P> - <P>Your final option is to take the plunge and learn some Java so that you can put custom solutions together yourself. If you want to do that, then you will need to read the next 'getting started' introduction, for <A HREF="solutionBuilder.html">solution --- 144,151 ---- *************** *** 184,198 **** web site. Try to state what OS you are using and the version of the web browser you are using. If you know how, then it would also be helpful if you can send a copy of any messages which appear in your browser's Java console.</P> - <P>To submit a support request, go the the projects development home page at: <BR> <A HREF="http://sourceforge.net/projects/geotools/">http://sourceforge.net/projects/geotools/</A></P> - <P>Pick the 'support' option from the list across the top of the page. On the next page, choose 'submit'. <BR> You do not need to be a member on SourceForge to use this form. However, if you are then you will be able to use the SourceForge site to track your request more closely.</P> - <P>Pick 'Getting Started' from the category list and then provide a summary and any other details you can think of.</P> - <P>If you can get some of the applets to work but are having problems with some aspects of them, or with setting things up the way you want them, then you have two options. The first is to use the support request form as above, --- 156,166 ---- |
From: James M. <jma...@us...> - 2001-11-29 18:18:49
|
Update of /cvsroot/geotools/website/php In directory usw-pr-cvs1:/tmp/cvs-serv3543 Modified Files: geotools_base.php Log Message: Added 'suggest a feature' to support side bar Index: geotools_base.php =================================================================== RCS file: /cvsroot/geotools/website/php/geotools_base.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -w -C2 -d -r1.1.1.1 -r1.2 *** geotools_base.php 2001/11/28 22:09:50 1.1.1.1 --- geotools_base.php 2001/11/29 18:18:46 1.2 *************** *** 219,222 **** --- 219,223 ---- echo '<li><A HREF="http://sourceforge.net/tracker/?func=add&group_id=4091&atid=104091">Submit a Bug</A>'; echo '<li><A HREF="http://sourceforge.net/tracker/?func=add&group_id=4091&atid=204091">Request Support</A>'; + echo '<li><A HREF="http://sourceforge.net/tracker/?func=add&group_id=4091&atid=354091">Suggest a Feature</A>'; echo '</ul>'; echo '</TD>'; |
From: James M. <jma...@us...> - 2001-11-29 10:14:15
|
Update of /cvsroot/geotools/website/help In directory usw-pr-cvs1:/tmp/cvs-serv12149 Modified Files: enduser.html Log Message: Spelling and grammar checked (loxnard) Index: enduser.html =================================================================== RCS file: /cvsroot/geotools/website/help/enduser.html,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -w -C2 -d -r1.1.1.1 -r1.2 *** enduser.html 2001/11/28 22:09:54 1.1.1.1 --- enduser.html 2001/11/29 10:14:12 1.2 *************** *** 1,224 **** ! <!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 name="GENERATOR" content="Mozilla/4.75 [en] (X11; U; Linux 2.2.16-22 i686) [Netscape]"> ! </head> ! <body> ! <h1> ! Getting Started as an End User:</h1> ! <h2> ! Prerequisites:</h2> ! This document assumes no knowledge of Java or for that matter any GIS skills. ! <br>You will, however, need at least some knowledge of HTML in order to put ! maps onto your web site. ! <br>You will also need some map data of your own, preferably in ESRI(tm) ! Shapefile format. (Though you can get started with the data provided ! with the demos). ! <br> ! <h2> ! Things to get:</h2> ! You should download the latest copy of the GeoTools examples and demos ! package. This comes in a file named demos.zip. At the time of writing ! this is version 1.1 which can be downloaded from the main GeoTools <a href="http://sourceforge.net/project/showfiles.php?group_id=4091">download ! site.</a> ! <p>Dont worry about all of the other files that are available there for ! the moment, you will only really need them if you go on to become either ! a solution builder or a developer. ! <p>A web browser which fully supports Java 1.1, for example Netscape 4.06 ! or later, and Internet Explorer 5 or later. (Make sure with both ! that if you download it you include the option to include Java as many ! recent releases default to not including it) ! <br> ! <br> ! <h2> ! Trying the examples:</h2> ! Hopefully you now have a copy of demos.zip and a Java enabled web browser, ! so let's run quickly through getting the demos running. ! <p>First, unpack the zip archive using your favourite archive tool. ! If you have no access to any tool on your operating system for dealing ! with zip files then submit a <a href="http://sourceforge.net/tracker/?group_id=4091">support ! request </a>and we will look at getting the files to you in another format. ! <p>Once you have unpacked it you should have a file called readme.html ! and a directory called demonstrations. ! <br>Open the readme.html file in your browser and click on view under Example ! 1, this will open one of the pages in the demonstrations folder which, ! after a short pause, should display a fairly plain map of the US. ! <p>If the map fails to appear then take a look at the<a href="#trouble"> ! trouble shooting</a> section at the end of this page. ! <p>Assuming that you have got a map on the screen then try using the three ! buttons at the bottom of the map. ! <br>Click on the zoom button and then drag a box out on a part of the map. ! The map will zoom in to the area you selected. Click the pan button ! and then click and hold the left mouse button over the map to drag the ! map around. Finally, click the reset button to return the view to one ! showing the whole of the US. ! <p>You can go back to the readme.html page and try some of the other examples ! if you want to see some more examples of GeoTools in action. ! <br> ! <h2> ! Exploring the files:</h2> ! OK, so how do the above demos work and what files are being used to get ! them working? ! <br>Each demo needs 5 files: ! <ul> ! <li> ! a html file - This holds the content of the web page and provides some ! information to the applet which will show the map.</li> ! <li> ! a class file - This controls the layout of the map and its controls.</li> ! <ul> ! <li> ! geotools.jar - The main archive which provides all of the mapping capabilities</li> ! <li> ! collections.jar - A support library written by Sun that GeoTools uses</li> ! <li> ! a zip file - This holds the map information used by the map applet</li> ! </ul> ! </ul> ! In the case of Example 1, the files that it needs are ! <p>demonstrations\Example1.html ! <br>demonstrations\Example1.class ! <br>demonstrations\jars\geotools.jar ! <br>demonstrations\jars\collections.jar ! <br>demonstrations\maps\statepop.zip ! <p>Taking a look at each file in turn, the first is the web page itself. ! If you open it up in an editor you will see that for the main part it is ! just like any other html page, the interesting part is the section marked ! out in the applet tag: ! <p><APPLET ARCHIVE="jars/geotools.jar,jars/collections.jar" CODE="Example1.class" ! WIDTH="430" HEIGHT="270" ALIGN="BOTTOM"> ! <br><PARAM NAME="shapefile" VALUE="maps/statepop"> ! <br></APPLET> ! <p>Pulling this apart we see that it first states that an applet is to ! be used. The<b> archive</b> tag provides the location of the two ! support libraries - geotools.jar and collections.jar. ! <br>The <b>code</b> tag gives the name of the class file to use whilst ! the width, height and align tags say how big the applet should be. ! <p>Next there is one param tag. This is a parameter used by the applet. ! In this case it is named '<b>shapefile'</b> and takes the value of the ! location of the map file to use. Note that the .zip extension is not given. ! <p>Finally, the applet tag is closed and the rest of the page is just standard ! html. ! <p>The geotools.jar and collections.jar file are just library files and ! are required by every GeoTools applet. There is nothing you need to change ! with these files. ! <p>If you open the statepop.zip file using an archive tool you will see ! that it actually contains three files, a .shp, a .shx and a .dbf file. ! GeoTools only needs the .shp file and .dbf file but most shapefiles have ! all three and later versions of GeoTools may make use of the .shx file ! (which is an index) so it's good to have it available. ! <br> ! <h2> ! Putting your own map on the web</h2> ! Assuming that you have a shapefile of your own that you want to put onto ! a web site, how do you go about it? ! <p>Start with example 1 as this is the easiest to set up: ! <br>Make a copy of Example1.html called, say, MyMap.html ! <br>Put your shapefile files into the maps directory (you can either put ! the three separate file there or archive them into a single zip file). ! <br>Change the param tag in MyMap.html so that the value is set to the ! name and location of your shapefile ! <p>Open the html page in your browser and your map should appear. ! <p>GeoTools requires no server side support so, provided all of the files ! needed are placed onto your web site, the map should be available for all ! to see. ! <br> ! <h2> ! Modifying the more advanced demos</h2> ! The next three demos, example 2, 3 and 4, each introduce additional features ! to make the maps more interesting. ! <br>Example 2 adds one more parameter which allows the map to show tooltips. ! These are small boxes which pop up to provide information about the feature ! under the mouse cursor. ! <p>If you look at the applet tag for Example 2 you will see the following: ! <p><APPLET ARCHIVE="jars/geotools.jar,jars/collections.jar" CODE="Example2.class" ! WIDTH="430" HEIGHT="270" ALIGN="BOTTOM"> ! <br><PARAM NAME="shapefile" VALUE="maps/statepop"> ! <br><PARAM NAME="tooltip" VALUE="STATE_NAME"> ! <br></APPLET> ! <p>The new parameter has the name - tooltip and its value is set to the ! name of a column of data which can be found in the .dbf file, in this ! case STATE_NAME. ! <br>If you know the names of any of the columns in your maps .dbf file ! then try changing this parameter to show tooltips on your map. Note ! that the applet tag now has CODE set to Example2.class. You cannot just ! go and add a tooltip param tag to the Example1 html file as that applet ! is not set up to display them. ! <p>Example 3 extends the concept in a similar way, this time the name of ! a numeric column is given and GeoTools uses thiis to shade the map in ! <p><APPLET ARCHIVE="jars/geotools.jar,jars/collections.jar" CODE="Example3.class" ! WIDTH="430" HEIGHT="270" ALIGN="BOTTOM"> ! <br><PARAM NAME="shapefile" VALUE="maps/statepop"> ! <br><PARAM NAME="shadeby" VALUE="UNEMPLOY"> ! <br><PARAM NAME="tooltip" VALUE="STATE_NAME"> ! <br></APPLET> ! <p>In this case, unemployment. One interesting feature of this applet ! is that if you double click on the key you will be shown a box which allows ! you to change the way the shading is performed. ! <br>Again, if you know the name of a numeric column in your shapefile then ! you can edit the param tags so that your map is shaded using that data. ! <p>Example 4 doesn't add any new parameters but instead includes an additional ! control widget which makes it possible to set zoom levels. ! <p>The final demo in the package at the time of writing is the GraphApplet ! demo which shows some of the more interactive capabilities of GeoTools. ! Try taking a look at the param tags in that demo and see if you can work ! out how to use your own data in the applet. ! <br> ! <h2> ! Creating custom applets</h2> ! Now you may be happy with one of the applets provided as is in the demos ! package, in which case there is nothing more for you to do, just place ! the files on a web site and publish your maps. But what if none of ! the applets quite do what you are looking for? Perhaps you want to ! display more than one map layer in the viewer or perhaps you want some ! other form of interactivity, perhaps linking to a different kind of graph. ! If so then you have three options open to you: ! <br>First, go to the applet listings page at: ! <br><a href="http://geotools.sourceforge.net/demos.php">http://geotools.sourceforge.net/demos.php</a> ! <br>Many of these can be configured using param tags and may do what you ! need. ! <p>If none of them are appropriate then your second option is to get someone, ! possibly us, to put together a custom applet that does what you need. ! If you represent a wealthy corporation with a budget burning a hole in your ! pocket then you can commision us to build a custom solution. If not, then ! one of us should be able to help you out in our spare time. ! <p>Your final option is to take the plunge and learn some Java so that ! you can put custom solutions together yourself. If you want to do that ! then you will need to read the next getting started introduction, for <a href="solutionBuilder.html">solution ! builders.</a> ! <br> ! <h2> ! <a NAME="trouble"></a>Trouble shooting and getting help</h2> ! If none of the applets seem to be working for you at all then submit a ! support request to the Geotools Sourceforge web site. Try to state what ! OS you are using and the version of the web browser you are using. ! If you know how, then it would also be helpful if you can send a copy of ! any messages which appear in your browser's Java console. ! <p>To submit a support request, go the the projects development home page ! at: ! <br><a href="http://sourceforge.net/projects/geotools/">http://sourceforge.net/projects/geotools/</a> ! <p>Then pick the 'support' option from the list across the top of the page. ! On the next page, choose submit. ! <br>You do not need to be a member on sourceforge to use this form. However, ! if you are then you will be able to use the sourceforge site to track your ! request more closely. ! <p>Pick 'Getting Started' from the category list and then provide a summary ! and any other details you can think of. ! <p>If you can get some of the applets to work but are having problems with ! some aspects of them or with setting things up the way you want them then ! you have two options. The first is to use the support request form as above, ! but giving details of what your problem is. The second is to look at the ! geotools-discussion archive to see if your problem has come up before. If ! not then feel free to join the list and post your query for all to pick ! over. ! <p>For details on the mailing list archive and to sign up as a subscriber ! go to <a href="http://lists.sourceforge.net/lists/listinfo/geotools-discussion">geotools-discussion</a> ! </body> ! </html> --- 1,206 ---- ! <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> ! <HTML> ! <HEAD> ! <META HTTP-EQUIV="Content-Type" CONTENT="text/html;CHARSET=iso-8859-1"> ! <META NAME="GENERATOR" Content="Visual Page 2.0 for Windows"> ! <META NAME="Author" Content="Linda Oxnard"> ! <TITLE>untitled</TITLE> ! </HEAD> ! <BODY> ! <H1>Getting Started as an End User:</H1> ! <H2>Prerequisites:</H2> ! <P>This document assumes no knowledge of Java or, for that matter, any GIS skills. <BR> ! You will, however, need at least some knowledge of HTML in order to put maps onto your web site. <BR> ! You will also need some map data of your own, preferably in ESRI(tm) Shapefile format. (Though you can get ! started with the data provided with the demos). <BR> ! ! <H2>Things to get:</H2> ! <P>You should download the latest copy of the GeoTools examples and demos package. This comes in a file named demos.zip. ! At the time of writing, this is version 1.1 which can be downloaded from the main GeoTools <A HREF="http://sourceforge.net/project/showfiles.php?group_id=4091">download ! site.</A></P> ! <P>Don't worry about all of the other files that are available there, for the moment. You will only really need ! them if you go on to become either a solution builder or a developer.</P> ! <P>You should also have a web browser which fully supports Java 1.1, for example Netscape 4.06 or later, and Internet ! Explorer 5 or later. (Make sure with both that, if you download it, you select the option to include Java, ! as many recent releases default to not including it) <BR> ! <BR> ! ! <H2>Trying the examples:</H2> ! <P>Hopefully, you now have a copy of demos.zip and a Java-enabled web browser. So let's run quickly through getting ! the demos running.</P> ! <P>First, unpack the zip archive using your favourite archive tool. If you have no access to any tool on ! your operating system for dealing with zip files, then submit a <A HREF="http://sourceforge.net/tracker/?group_id=4091">support ! request </A>and we will look at getting the files to you in another format.</P> ! ! <P>Once you have unpacked it, you should have a file called readme.html and a directory called 'demonstrations'. ! <BR> ! Open the readme.html file in your browser and click on 'view' under Example 1. This will open one of the pages ! in the demonstrations folder which, after a short pause, should display a fairly plain map of the US.</P> ! ! <P>If the map fails to appear, then take a look at the<A HREF="#trouble"> trouble shooting</A> section at the end ! of this page.</P> ! ! <P>Assuming that you have got a map on the screen, then try using the three buttons at the bottom of the map. ! Click on the 'zoom' button and then drag a box out on a part of the map. The map will zoom in to the area you ! selected. Click the 'pan' button and then click and hold the left mouse button over the map to drag the map ! around. Finally, click the 'reset' button to return the view to one showing the whole of the US.</P> ! ! <P>You can go back to the readme.html page and try some of the other examples if you want to see some more examples ! of GeoTools in action. <BR> ! ! <H2>Exploring the files:</H2> ! <P>OK, so how do the above demos work and what files are being used to get them working? <BR> ! Each demo needs 5 files: ! ! <UL> ! <LI>an html file - This holds the content of the web page and provides some information to the applet which will ! show the map. ! <LI>a class file - This controls the layout of the map and its controls. ! <UL> ! <LI>geotools.jar - The main archive which provides all of the mapping capabilities ! <LI>collections.jar - A support library written by Sun that GeoTools uses ! <LI>a zip file - This holds the map information used by the map applet ! </UL> ! </UL> ! ! <P>In the case of Example 1, the files that it needs are:</P> ! ! <P>demonstrations\Example1.html <BR> ! demonstrations\Example1.class <BR> ! demonstrations\jars\geotools.jar <BR> ! demonstrations\jars\collections.jar <BR> ! demonstrations\maps\statepop.zip</P> ! ! <P>Taking a look at each file in turn, the first is the web page itself. If you open it up in an editor you ! will see that, for the main part, it is just like any other html page. The interesting part is the section marked ! out in the applet tag:</P> ! ! <P><APPLET ARCHIVE="jars/geotools.jar,jars/collections.jar" CODE="Example1.class" ! WIDTH="430" HEIGHT="270" ALIGN="BOTTOM"> <BR> ! <PARAM NAME="shapefile" VALUE="maps/statepop"> <BR> ! </APPLET></P> ! ! <P>Pulling this apart, we see that it first states that an applet is to be used. The<B> archive</B> tag provides ! the location of the two support libraries - geotools.jar and collections.jar. <BR> ! The <B>code</B> tag gives the name of the class file to use, whilst the <B>width</B>, <B>height</B> and <B>align</B> ! tags say how big the applet should be.</P> ! ! <P>Next there is one <B>param</B> tag. This is a parameter used by the applet. In this case, it is named '<B>shapefile'</B> ! and takes the value of the location of the map file to use. Note that the '.zip' extension is not given.</P> ! ! <P>Finally, the applet tag is closed and the rest of the page is just standard html.</P> ! ! <P>The geotools.jar and collections.jar file are just library files and are required by every GeoTools applet. ! There is nothing you need to change with these files.</P> ! ! <P>If you open the statepop.zip file using an archive tool, you will see that it actually contains three files: ! .shp, .shx and .dbf. GeoTools only needs the .shp and .dbf files but most shapefiles have all three and ! later versions of GeoTools may make use of the .shx file (which is an index), so it's good to have it available. ! <BR> ! ! <H2>Putting your own map on the web</H2> ! <P>Assuming that you have a shapefile of your own that you want to put onto a web site, how do you go about it?</P> ! ! <P>Start with example 1, as this is the easiest to set up: <BR> ! Make a copy of Example1.html called, for example, MyMap.html <BR> ! Put your shapefile files into the maps directory (you can either put the three separate files there or archive ! them into a single .zip file). <BR> ! Change the <B>param</B> tag in MyMap.html so that the value is set to the name and location of your shapefile.</P> ! ! <P>Open the html page in your browser and your map should appear.</P> ! ! <P>GeoTools requires no server-side support so, provided all of the files needed are placed onto your web site, ! the map should be available for all to see. <BR> ! ! <H2>Modifying the more advanced demos</H2> ! <P>The next three demos, examples 2, 3 and 4, each introduce additional features to make the maps more interesting. ! <BR> ! Example 2 adds one more parameter which allows the map to show tooltips (these are small boxes which pop up to ! provide information about the feature under the mouse cursor).</P> ! ! <P>If you look at the applet tag for Example 2, you will see the following:</P> ! ! <P><APPLET ARCHIVE="jars/geotools.jar,jars/collections.jar" CODE="Example2.class" ! WIDTH="430" HEIGHT="270" ALIGN="BOTTOM"> <BR> ! <PARAM NAME="shapefile" VALUE="maps/statepop"> <BR> ! <PARAM NAME="tooltip" VALUE="STATE_NAME"> <BR> ! </APPLET></P> ! ! <P>The new parameter has the name <B>tooltip</B> and its value is set to the name of a column of data which can ! be found in the .dbf file, in this case <B>STATE_NAME</B>. <BR> ! If you know the names of any of the columns in your map's .dbf file, then try changing this parameter to show tooltips ! on your map. Note that the applet tag now has <B>CODE</B> set to <B>Example2.class</B>. You cannot just add ! a tooltip <B>param</B> tag to the Example1 html file, as that applet is not set up to display them.</P> ! ! <P>Example 3 extends the concept in a similar way. This time, the name of a numeric column is given and GeoTools ! uses this to shade the map in. In this case, the column <B>UNEMPLOY</B> is used which represents unemployment.</P> ! ! <P><APPLET ARCHIVE="jars/geotools.jar,jars/collections.jar" CODE="Example3.class" ! WIDTH="430" HEIGHT="270" ALIGN="BOTTOM"> <BR> ! <PARAM NAME="shapefile" VALUE="maps/statepop"> <BR> ! <PARAM NAME="shadeby" VALUE="UNEMPLOY"> <BR> ! <PARAM NAME="tooltip" VALUE="STATE_NAME"> <BR> ! </APPLET></P> ! ! <P>One interesting feature of this applet is that, if you double click on the key, you will be shown a box which ! allows you to change the way the shading is performed. <BR> ! Again, if you know the name of a numeric column in your shapefile then you can edit the <B>param</B> tags so that ! your map is shaded using that data.</P> ! ! <P>Example 4 doesn't add any new parameters, but instead includes an additional control widget which makes it possible ! to set zoom levels.</P> ! ! <P>The final demo in the package, at the time of writing, is the GraphApplet demo which shows some of the more ! interactive capabilities of GeoTools. Try taking a look at the <B>param</B> tags in that demo and see if you can ! work out how to use your own data in the applet. <BR> ! ! <H2>Creating custom applets</H2> ! <P>You may be happy with one of the applets provided as is in the demos package, in which case there is nothing ! more for you to do, just place the files on a web site and publish your maps. But what if none of the applets ! quite do what you are looking for? Perhaps you want to display more than one map layer in the viewer, or ! perhaps you want some other form of interactivity, perhaps linking to a different kind of graph. If so, then ! you have three options open to you: <BR> ! First, go to the applet listings page at: <BR> ! <A HREF="http://geotools.sourceforge.net/demos.php">http://geotools.sourceforge.net/demos.php</A> <BR> ! Many of these can be configured using <B>param</B> tags and may do what you need.</P> ! ! <P>If none of them are appropriate, then your second option is to get someone, possibly us, to put together a custom ! applet that does what you need. If you represent a wealthy corporation with a budget burning a hole in your ! pocket, then you can commision us to build a custom solution. If not, then one of us should be able to help you ! out in our spare time.</P> ! ! <P>Your final option is to take the plunge and learn some Java so that you can put custom solutions together yourself. ! If you want to do that, then you will need to read the next 'getting started' introduction, for <A HREF="solutionBuilder.html">solution ! builders.</A> <BR> ! ! <H2><A NAME="trouble"></A>Trouble shooting and getting help</H2> ! <P>If none of the applets seem to be working for you at all, then submit a support request to the Geotools SourceForge ! web site. Try to state what OS you are using and the version of the web browser you are using. If you know ! how, then it would also be helpful if you can send a copy of any messages which appear in your browser's Java console.</P> ! ! <P>To submit a support request, go the the projects development home page at: <BR> ! <A HREF="http://sourceforge.net/projects/geotools/">http://sourceforge.net/projects/geotools/</A></P> ! ! <P>Pick the 'support' option from the list across the top of the page. On the next page, choose 'submit'. <BR> ! You do not need to be a member on SourceForge to use this form. However, if you are then you will be able to use ! the SourceForge site to track your request more closely.</P> ! ! <P>Pick 'Getting Started' from the category list and then provide a summary and any other details you can think ! of.</P> ! ! <P>If you can get some of the applets to work but are having problems with some aspects of them, or with setting ! things up the way you want them, then you have two options. The first is to use the support request form as above, ! but giving details of what your problem is. The second is to look at the geotools-discussion archive to see if ! your problem has come up before. If not, then feel free to join the list and post your query for all to pick over.</P> ! ! <P>For details on the mailing list archive, and to sign up as a subscriber, go to <A HREF="http://lists.sourceforge.net/lists/listinfo/geotools-discussion">geotools-discussion</A> ! ! </BODY> ! ! </HTML> \ No newline at end of file |
From: James M. <jma...@us...> - 2001-11-28 19:08:23
|
Update of /cvsroot/geotools/geotools/src/demonstrations In directory usw-pr-cvs1:/tmp/cvs-serv10253/demonstrations Added Files: readme.html Log Message: Moved into the demonstrations folder so that it is easier to find --- NEW FILE: readme.html --- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <HTML> <HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html;CHARSET=iso-8859-1"> <META NAME="GENERATOR" Content="Visual Page 2.0 for Windows"> <TITLE>GeoTools demos, examples and tutorials package</TITLE> </HEAD> <BODY> <H1>GeoTools Demos and Tutorials Package</H1> <H2>Introduction</H2> <P>The GeoTools open source java mapping toolkit is a flexable library of rutines and objects that can be used to build interactive web based applets as well as stand allone applications.</P> <P>The GeoTools package is not an application in its own right however, only a toolkit, so in order to place a map on the web, or into an application small amounts of additonal code is required.</P> <P>This package aims to provide a suite of small applets, and latter applications, that can either be used 'as is', or used as a starting point for more addvanced programs. (Or you might just want to canabalise bits out of each one)</P> <H2>Requirements</H2> <P>GeoTools 0.7.9dev1 (included in jars folder) <BR> Java 1.1 or later<BR> suns Collections package (available in full from the geotools ftp site, jar file can be found in jars directory)</P> <P></P> <H2>The Demos</H2> <P>The following demonstrations have been ilustated with the aim of providing clear examples of GeoTools usage, as a result there is a minimum of non-geotools related code, for example code for error handling is not as much in evidence as perhaps it should be.</P> <P> <H3>Example 1</H3> <P><A HREF="Example1.html">View</A><B></B></P> <P><B>Description:</B></P> <P>A very simple applet that shows how a shapefile can be read and displayd in an applet along with a standard toolbar.</P> <P><B>Customizing:</B></P> <P>The applet tag contains a single param tag 'shapefile' that specifies the relative address of the shapefile to load.</P> <P><B>Key classes introduced</B></P> <P>geotools.ShapefileReader<BR> geotools.Theme<BR> geotools.Viewer<BR> wideges.ToolBar</P> <H3></H3> <H3>Example 2</H3> <P><A HREF="Example2.html">View</A><B></B></P> <P><B>Description:</B></P> <P>An extension of example1 that show how to set up tool tips</P> <P><B>Customizing:</B></P> <P>The applet tag contains two tags :<BR> 'shapefile' the relative address of the shapefile to load.<BR> 'tooltip' the name of the colum to pull the tooltips from</P> <P><B>Key classes introduced</B></P> <P>geotools.GeoData</P> <P></P> <H3>Example 3</H3> <P><A HREF="Example3.html">View</A><B></B></P> <P><B>Description:</B></P> <P>An extension of example2 that show how to shade a map</P> <P><B>Customizing:</B></P> <P>The applet tag contains three tags :<BR> 'shapefile' the relative address of the shapefile to load.<BR> 'tooltip' the name of the colum to pull the tooltips from<BR> 'shadeby' the name of a data column </P> <P><B>Key classes introduced</B></P> <P>geotools.Shader<BR> geotools.ClassificationShader<BR> geotools.Key<BR> </P> <H3>Example 4</H3> <P><A HREF="Example4.html">View</A><B></B></P> <P><B>Description:</B></P> <P>A simple extention of Example 3 introducing a new navigation widget</P> <P><B>Customizing:</B></P> <P>The applet tag contains three tags :<BR> 'shapefile' the relative address of the shapefile to load.<BR> 'tooltip' the name of the colum to pull the tooltips from<BR> 'shadeby' the name of a data column </P> <P><B>Key classes introduced</B></P> <P>widgets.ZoomLevelPicker<BR> </P> <H3>GraphApplet Example</H3> <P><A HREF="GraphApplet.html">View</A><B></B></P> <P><B>Description:</B></P> <P>A fairly complete applet showing how a graph and chart can be linked through a highlight manager.</P> <P><B>Customizing:</B></P> <P>The applet tag contains a large number of tags :<BR> param name="shapefile" value="nameOfShapefileWithoutExtension"<br> param name="tooltip" value="nameOfColumn"<br> param name="groups" value="numberOfGroups"<br> param name="groupXcol" value="nameOfColumn" // for each group<br> param name="groupXcolor" value="#rrggbb hex colour reference"<br> param name="groupXname" value="Description of group"<br> <P><B>Key classes introduced</B></P> <P>widgets.PieChart<BR> geotools.GeoLabel<br> geotools.HighlightManager<br> </P> </BODY> </HTML> |
From: James M. <jma...@us...> - 2001-11-23 18:52:55
|
Update of /cvsroot/geotools/geotools/src/uk/ac/leeds/ccg/widgets In directory usw-pr-cvs1:/tmp/cvs-serv3185/uk/ac/leeds/ccg/widgets Modified Files: NudgeNavigate.java Log Message: added a constructor which takes icons to represent zoom in and out Index: NudgeNavigate.java =================================================================== RCS file: /cvsroot/geotools/geotools/src/uk/ac/leeds/ccg/widgets/NudgeNavigate.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** NudgeNavigate.java 2001/11/22 17:22:16 1.4 --- NudgeNavigate.java 2001/11/23 18:52:52 1.5 *************** *** 14,17 **** --- 14,19 ---- public class NudgeNavigate extends java.awt.Panel { Viewer view; + Image inIcon = null; + Image outIcon = null; /** Creates new form NudgeNavigate */ public NudgeNavigate(Viewer v) { *************** *** 20,23 **** --- 22,32 ---- } + public NudgeNavigate(Viewer v,Image in,Image out) { + initComponents(); + view = v; + inIcon = in; + outIcon = out; + } + /** This method is called from within the constructor to * initialize the form. *************** *** 54,98 **** case NW: System.out.println("North West"); ! center.y+=oldBounds.height/10d; ! center.x-=oldBounds.width/10d; break; case N: System.out.println("North"); ! center.y+=oldBounds.height/10d; break; case NE: System.out.println("North East"); ! center.y+=oldBounds.height/10d; ! center.x+=oldBounds.width/10d; break; case W: System.out.println("West"); ! center.x-=oldBounds.width/10d; break; case E: System.out.println("East"); ! center.x+=oldBounds.width/10d; break; case SW: System.out.println("South West"); ! center.y-=oldBounds.height/10d; ! center.x-=oldBounds.width/10d; break; case S: System.out.println("South"); ! center.y-=oldBounds.height/10d; break; case SE: System.out.println("South East"); ! center.y-=oldBounds.height/10d; ! center.x+=oldBounds.width/10d; break; case IN: System.out.println("Zoom In"); ! view.zoomPercent(oldPercent+oldPercent/10d); break; case OUT: System.out.println("Zoom Out"); ! view.zoomPercent(oldPercent-oldPercent/10d); break; default: --- 63,107 ---- case NW: System.out.println("North West"); ! center.y+=oldBounds.height/3d; ! center.x-=oldBounds.width/3d; break; case N: System.out.println("North"); ! center.y+=oldBounds.height/3d; break; case NE: System.out.println("North East"); ! center.y+=oldBounds.height/3d; ! center.x+=oldBounds.width/3d; break; case W: System.out.println("West"); ! center.x-=oldBounds.width/3d; break; case E: System.out.println("East"); ! center.x+=oldBounds.width/3d; break; case SW: System.out.println("South West"); ! center.y-=oldBounds.height/3d; ! center.x-=oldBounds.width/3d; break; case S: System.out.println("South"); ! center.y-=oldBounds.height/3d; break; case SE: System.out.println("South East"); ! center.y-=oldBounds.height/3d; ! center.x+=oldBounds.width/3d; break; case IN: System.out.println("Zoom In"); ! view.zoomPercent(oldPercent+oldPercent/2d); break; case OUT: System.out.println("Zoom Out"); ! view.zoomPercent(oldPercent-oldPercent/2d); break; default: *************** *** 130,133 **** --- 139,147 ---- drawArrow(g,wgap+wgap/2,hgap*2+hgap/2,8,wgap);//s drawArrow(g,wgap*2+wgap/2,hgap*2+hgap/2,7,wgap);//se + + if(inIcon !=null && outIcon!=null){ + g.drawImage(outIcon,wgap*3+1,1,wgap-2,hgap-2,null); + g.drawImage(inIcon,wgap*3+1,hgap*2+1,wgap-2,hgap-2,null); + } |
From: James M. <jma...@us...> - 2001-11-23 18:52:19
|
Update of /cvsroot/geotools/geotools/src/uk/ac/leeds/ccg/widgets In directory usw-pr-cvs1:/tmp/cvs-serv3079/uk/ac/leeds/ccg/widgets Modified Files: ThemePanel.java Log Message: removed more Java2 specific method calls Index: ThemePanel.java =================================================================== RCS file: /cvsroot/geotools/geotools/src/uk/ac/leeds/ccg/widgets/ThemePanel.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** ThemePanel.java 2001/11/15 13:49:07 1.6 --- ThemePanel.java 2001/11/23 18:52:17 1.7 *************** *** 170,174 **** class MouseRelease extends java.awt.event.MouseAdapter{ public void mouseReleased(MouseEvent e){ ! e.translatePoint(0,e.getComponent().getY()); Component c = p.getComponentAt(e.getX(),e.getY()); Theme t2 = (Theme)switches.get(e.getSource()); --- 170,174 ---- class MouseRelease extends java.awt.event.MouseAdapter{ public void mouseReleased(MouseEvent e){ ! e.translatePoint(0,(int)e.getComponent().getLocation().y); Component c = p.getComponentAt(e.getX(),e.getY()); Theme t2 = (Theme)switches.get(e.getSource()); *************** *** 180,189 **** Theme t1 = (Theme)switches.get(c); - ! Graphics g = getGraphics(); g.setColor(getBackground()); ! g.fillRect(0,0,getWidth(),getHeight()); if(t1!=null && t2!=null && t1!=t2){ --- 180,188 ---- Theme t1 = (Theme)switches.get(c); ! Graphics g = getGraphics(); g.setColor(getBackground()); ! g.fillRect(0,0,getSize().width,getSize().height); if(t1!=null && t2!=null && t1!=t2){ *************** *** 196,205 **** public void mouseDragged(MouseEvent e){ //System.out.println(e.getComponent()); ! e.translatePoint(0,e.getComponent().getY()); Component c = p.getComponentAt(e.getX(),e.getY()); int y; ! if(c==null) y = p.getHeight(); else{ ! y = c.getY(); } if(c==p) y = e.getY(); --- 195,204 ---- public void mouseDragged(MouseEvent e){ //System.out.println(e.getComponent()); ! e.translatePoint(0,e.getComponent().getLocation().y); Component c = p.getComponentAt(e.getX(),e.getY()); int y; ! if(c==null) y = p.getSize().height; else{ ! y = c.getLocation().y; } if(c==p) y = e.getY(); *************** *** 208,216 **** Graphics g = getGraphics(); g.setColor(getBackground()); ! g.fillRect(0,0,getWidth(),getHeight()); g.setColor(Color.red); ! g.fillRect(0,y,getWidth(),4); --- 207,215 ---- Graphics g = getGraphics(); g.setColor(getBackground()); ! g.fillRect(0,0,getSize().width,getSize().width); g.setColor(Color.red); ! g.fillRect(0,y,getSize().width,4); |
From: James M. <jma...@us...> - 2001-11-23 18:51:50
|
Update of /cvsroot/geotools/geotools/src/uk/ac/leeds/ccg/geotools In directory usw-pr-cvs1:/tmp/cvs-serv2913/uk/ac/leeds/ccg/geotools Modified Files: Viewer.java Log Message: fixed bugs with viewer wrt highlights and tooltips for themes which were switched off Index: Viewer.java =================================================================== RCS file: /cvsroot/geotools/geotools/src/uk/ac/leeds/ccg/geotools/Viewer.java,v retrieving revision 1.36 retrieving revision 1.37 diff -C2 -d -r1.36 -r1.37 *** Viewer.java 2001/11/15 13:49:07 1.36 --- Viewer.java 2001/11/23 18:51:46 1.37 *************** *** 608,612 **** for (Enumeration e = staticThemes.elements() ; e.hasMoreElements() ;) { t=(Theme)e.nextElement(); ! t.paintHighlight(g,scale); } try{ --- 608,614 ---- for (Enumeration e = staticThemes.elements() ; e.hasMoreElements() ;) { t=(Theme)e.nextElement(); ! if(isThemeVisible(t)){ ! t.paintHighlight(g,scale); ! } } try{ *************** *** 1144,1150 **** Enumeration e = visibleThemes.elements(); while(e.hasMoreElements()){ ! String tempTip = ((Theme)e.nextElement()).getTipText(getMapGeoPoint(),this.scale); ! if(tempTip !=null && !tempTip.trim().equals("")){ ! tip = tempTip; } } --- 1146,1155 ---- Enumeration e = visibleThemes.elements(); while(e.hasMoreElements()){ ! Theme theme = (Theme)e.nextElement(); ! if(isThemeVisible(theme)){ ! String tempTip = (theme).getTipText(getMapGeoPoint(),this.scale); ! if(tempTip !=null && !tempTip.trim().equals("")){ ! tip = tempTip; ! } } } |
From: James M. <jma...@us...> - 2001-11-22 17:22:19
|
Update of /cvsroot/geotools/geotools/src/uk/ac/leeds/ccg/widgets In directory usw-pr-cvs1:/tmp/cvs-serv18293/uk/ac/leeds/ccg/widgets Modified Files: NudgeNavigate.java Log Message: made preferred size smaller Index: NudgeNavigate.java =================================================================== RCS file: /cvsroot/geotools/geotools/src/uk/ac/leeds/ccg/widgets/NudgeNavigate.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** NudgeNavigate.java 2001/11/21 18:34:24 1.3 --- NudgeNavigate.java 2001/11/22 17:22:16 1.4 *************** *** 138,142 **** public Dimension getPreferredSize(){ ! return new Dimension(80,60); } --- 138,142 ---- public Dimension getPreferredSize(){ ! return new Dimension(60,40); } |
From: Ian T. <ian...@us...> - 2001-11-22 15:43:26
|
Update of /cvsroot/geotools/geotools/src/uk/ac/leeds/ccg/widgets In directory usw-pr-cvs1:/tmp/cvs-serv26683/uk/ac/leeds/ccg/widgets Modified Files: ScaleBar.java Log Message: added an option to "unproject" the scale bar if your map is in latlong - It may not be completely correct if you are along way north/south, since the measurement is made in the centre of the displayed map. It also assumes a equatorial mercator project - But as a rough idea of the distances involved its fine. Index: ScaleBar.java =================================================================== RCS file: /cvsroot/geotools/geotools/src/uk/ac/leeds/ccg/widgets/ScaleBar.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** ScaleBar.java 2001/04/02 07:47:33 1.6 --- ScaleBar.java 2001/11/22 15:43:22 1.7 *************** *** 4,17 **** import uk.ac.leeds.ccg.geotools.*; import uk.ac.leeds.ccg.geotools.misc.*; public class ScaleBar extends Canvas implements ScaleChangedListener{ private final static boolean DEBUG=false; Scaler s; String units = "m"; boolean isSI = true; int height = 50; int width = 150; public ScaleBar(Viewer v){ ! if(DEBUG)System.out.println("---->uk.ac.leeds.ccg.widgets.ScaleBar constructed. Will identify itself as ScB->"); s = v.getScale(); s.addScaleChangedListener(this); --- 4,27 ---- import uk.ac.leeds.ccg.geotools.*; import uk.ac.leeds.ccg.geotools.misc.*; + import uk.ac.leeds.ccg.geotools.projections.*; public class ScaleBar extends Canvas implements ScaleChangedListener{ private final static boolean DEBUG=false; + private final static String DBC="ScB:"; Scaler s; String units = "m"; boolean isSI = true; + boolean isProjected = false; int height = 50; int width = 150; + ElipsoidalMercator proj; + + public ScaleBar(Viewer v,boolean projf){ + this(v); + isProjected=projf; + proj = new ElipsoidalMercator(); + } public ScaleBar(Viewer v){ ! if(DEBUG)System.out.println("---->uk.ac.leeds.ccg.widgets.ScaleBar constructed. Will identify itself as "+DBC); s = v.getScale(); s.addScaleChangedListener(this); *************** *** 28,36 **** return isSI; } - /** a present we'll draw a line of a fixed length and say how long it is - * in future we should choose a nice length so as to give a round number - * etc - */ int ticklen = 5; // how long the ticks are int inset =5; // distance from either end to the bar; --- 38,48 ---- return isSI; } + public void setProjected(boolean f){ + isProjected=f; + } + public boolean getProjected(){ + return isProjected; + } int ticklen = 5; // how long the ticks are int inset =5; // distance from either end to the bar; *************** *** 42,53 **** int lh = 2*h/3; len = w - 2*inset; ! if(DEBUG)System.out.println("ScB->len = "+len+" w "+w); ! double scaledLen = s.toMap(len); if(Double.isNaN(scaledLen)) return; // no scale in map double fac = Math.log(scaledLen)/Math.log(10.0); ! if(DEBUG)System.out.println("ScB->len = "+scaledLen+" "+fac); // can't just truncate for lengths less than 1! double size = Math.pow(10.0,Math.floor(fac)); len=s.toGraphics(size); int ticks=0; while(len<w-2*inset){ --- 54,89 ---- int lh = 2*h/3; len = w - 2*inset; ! if(DEBUG)System.out.println(DBC+"->len = "+len+" w "+w); ! double scaledLen; ! if(!isProjected){ ! scaledLen = s.toMap(len); ! }else{ ! GeoRectangle r = s.getMapExtent(); ! double slen = s.toMap(len); ! double p1[] = proj.project(r.x,r.y+r.height/2.0); ! double p2[] = proj.project(r.x+slen,r.y+r.height/2.0); ! if(DEBUG){ ! System.out.println(DBC+" in "+r.x+","+(r.y+r.height/2.0)+" -> "+ ! (r.x+slen)+","+(r.y+r.height/2.0)); ! System.out.println(DBC+" out "+p1[0]+","+p1[1]+" "+p2[0]+","+p2[1]); ! } ! ! scaledLen = (p2[0]-p1[0])*1000; // proj is in km ! } ! if(Double.isNaN(scaledLen)) return; // no scale in map double fac = Math.log(scaledLen)/Math.log(10.0); ! if(DEBUG)System.out.println(DBC+"->len = "+scaledLen+" "+fac); // can't just truncate for lengths less than 1! double size = Math.pow(10.0,Math.floor(fac)); len=s.toGraphics(size); + if(DEBUG)System.out.println(DBC+" size "+size+" len "+len+" fac "+fac); + int fudge=0; + while(len>w){ + size = Math.pow(10.0,Math.floor(--fac)); + fudge++; + len=s.toGraphics(size); + if(DEBUG)System.out.println(DBC+" size "+size+" len "+len+" fac "+fac); + } int ticks=0; while(len<w-2*inset){ *************** *** 64,69 **** len=s.toGraphics(size*ticks); scaledLen = size*ticks; ! if(DEBUG)System.out.println("ScB->len = "+len+" slen "+scaledLen+" size "+size); String tunits=units; if(isSI&&scaledLen>1000.0){ size/=1000.0; --- 100,116 ---- len=s.toGraphics(size*ticks); scaledLen = size*ticks; ! if(DEBUG)System.out.println(DBC+"->len = "+len+" slen "+scaledLen+" size "+size); String tunits=units; + + if(isProjected&&fudge>0){ + if(DEBUG)System.out.println(DBC+"fudge = "+fudge+" size " + size + + "slen "+scaledLen); + while(fudge-->0){ + size*=10.0; + scaledLen*=10.0; + } + if(DEBUG)System.out.println(DBC+"fudge = "+fudge+" size " + size + + "slen "+scaledLen); + } if(isSI&&scaledLen>1000.0){ size/=1000.0; *************** *** 72,81 **** } - g.drawLine(inset,lh,inset+len,lh); double tlen = len/(double)ticks; ! if(DEBUG)System.out.println("ScB->ticks "+ticks+" "+tlen); int step =1; - if(ticks>=4) step=2; if(ticks>=6) step =3; if(ticks>=8) step = 4; --- 119,126 ---- } g.drawLine(inset,lh,inset+len,lh); double tlen = len/(double)ticks; ! if(DEBUG)System.out.println(DBC+"->ticks "+ticks+" "+tlen); int step =1; if(ticks>=6) step =3; if(ticks>=8) step = 4; *************** *** 84,87 **** --- 129,133 ---- g.drawLine(inset+(int)Math.round(tlen*i),lh,inset+(int)Math.round(tlen*i),lh+ticklen); if(i%step==0||i==ticks){ + // should work out length of string (size*i) and centre label g.drawString(""+size*i,(int)(tlen*i),h); g.drawLine((int)Math.round(inset+tlen*i),lh-ticklen,(int)Math.round(inset+tlen*i),lh); |
From: Artur H. <ko...@us...> - 2001-11-22 11:00:04
|
Update of /cvsroot/geotools/geotools/src/uk/ac/leeds/ccg/raster In directory usw-pr-cvs1:/tmp/cvs-serv17457/uk/ac/leeds/ccg/raster Modified Files: ImageLayer.java Log Message: Separated image data loading from image creating and some comments added Index: ImageLayer.java =================================================================== RCS file: /cvsroot/geotools/geotools/src/uk/ac/leeds/ccg/raster/ImageLayer.java,v retrieving revision 1.28 retrieving revision 1.29 diff -C2 -d -r1.28 -r1.29 *** ImageLayer.java 2001/11/21 13:48:19 1.28 --- ImageLayer.java 2001/11/22 11:00:01 1.29 *************** *** 326,330 **** } // end of if (src != null) if (src_stream != null) { ! this.image = tk.createImage(getImageData(src_stream)); } // end of if (src_stream != null) --- 326,333 ---- } // end of if (src != null) if (src_stream != null) { ! byte[] img_data = getImageData(src_stream); ! // here we can put condition for creating ! // image or not for some reason ! this.image = tk.createImage(img_data); } // end of if (src_stream != null) *************** *** 380,383 **** --- 383,389 ---- * * $Log$ + * Revision 1.29 2001/11/22 11:00:01 kobit + * Separated image data loading from image creating and some comments added + * * Revision 1.28 2001/11/21 13:48:19 kobit * Added support for creating ImageLayer with InputStream as image data source and full support for downaloding map data from WMS with jprotocols package |
From: James M. <jma...@us...> - 2001-11-21 18:34:29
|
Update of /cvsroot/geotools/geotools/src/uk/ac/leeds/ccg/widgets In directory usw-pr-cvs1:/tmp/cvs-serv28894/uk/ac/leeds/ccg/widgets Modified Files: NudgeNavigate.java Log Message: removed calls to getWidth() which only arrived in Java1.2 Index: NudgeNavigate.java =================================================================== RCS file: /cvsroot/geotools/geotools/src/uk/ac/leeds/ccg/widgets/NudgeNavigate.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** NudgeNavigate.java 2001/11/19 13:09:30 1.2 --- NudgeNavigate.java 2001/11/21 18:34:24 1.3 *************** *** 42,46 **** int x = evt.getX(); int y= evt.getY(); ! int w = Math.min(getWidth(),getHeight()); int col = x/(w/4); --- 42,46 ---- int x = evt.getX(); int y= evt.getY(); ! int w = Math.min(getBounds().width,getBounds().height); int col = x/(w/4); *************** *** 104,109 **** public void paint(Graphics g){ ! int w = getWidth(); ! int h = getHeight(); w = Math.min(w,h); h = Math.min(w,h); --- 104,109 ---- public void paint(Graphics g){ ! int w = this.getSize().width; ! int h = this.getSize().height; w = Math.min(w,h); h = Math.min(w,h); |
From: Ian T. <ia...@ge...> - 2001-11-21 14:02:59
|
can you add -w to the cvs diff command to reduce the output when the formatting does "acidently" change -- Ian Turton, Centre for Computational Geography, School of Geography, University of Leeds, Leeds, LS2 9JT. 0113 2333392 URL: http://www.geog.leeds.ac.uk/staff/i.turton/ |
From: Artur H. <ko...@us...> - 2001-11-21 13:48:24
|
Update of /cvsroot/geotools/geotools/src/utils In directory usw-pr-cvs1:/tmp/cvs-serv13012/utils Modified Files: WMSExample.java run-wmsdemo.sh Log Message: Added support for creating ImageLayer with InputStream as image data source and full support for downaloding map data from WMS with jprotocols package Index: WMSExample.java =================================================================== RCS file: /cvsroot/geotools/geotools/src/utils/WMSExample.java,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** WMSExample.java 2001/11/20 17:01:45 1.12 --- WMSExample.java 2001/11/21 13:48:19 1.13 *************** *** 227,231 **** layerList.removeAll(); for(int i = 0; i < ext_layers.size(); i++) { ! deb(""+(i+1)+". Layer: "+ext_layers.get(i)); layerList.add(((ExternalWMSLayer)ext_layers.get(i)).toString()); } --- 227,231 ---- layerList.removeAll(); for(int i = 0; i < ext_layers.size(); i++) { ! // deb(""+(i+1)+". Layer: "+ext_layers.get(i)); layerList.add(((ExternalWMSLayer)ext_layers.get(i)).toString()); } *************** *** 358,362 **** imgType = imgType.substring(k+1); } ! currentUrl = new URL(server_url+"?WMTVER=1.0&REQUEST=map&SRS=EPSG%3A4326&format="+imgType+"&BBOX="+b.x+","+b.y+","+(b.x+b.width)+","+(b.y+b.height)+"&WIDTH="+w+"&HEIGHT="+h+"&LAYERS="+layers); imgLayer.changeImage(currentUrl,b); if(th==null){ --- 358,364 ---- imgType = imgType.substring(k+1); } ! currentUrl = new URL(server_url+"?WMTVER=1.0&REQUEST=map&SRS=EPSG%3A4326&format="+ ! imgType+"&BBOX="+b.x+","+b.y+","+(b.x+b.width)+","+ ! (b.y+b.height)+"&WIDTH="+w+"&HEIGHT="+h+"&LAYERS="+layers); imgLayer.changeImage(currentUrl,b); if(th==null){ *************** *** 447,450 **** --- 449,455 ---- * * $Log$ + * Revision 1.13 2001/11/21 13:48:19 kobit + * Added support for creating ImageLayer with InputStream as image data source and full support for downaloding map data from WMS with jprotocols package + * * Revision 1.12 2001/11/20 17:01:45 kobit * Added byte[] getContentData() support Index: run-wmsdemo.sh =================================================================== RCS file: /cvsroot/geotools/geotools/src/utils/run-wmsdemo.sh,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** run-wmsdemo.sh 2001/11/18 15:55:43 1.1 --- run-wmsdemo.sh 2001/11/21 13:48:20 1.2 *************** *** 1,7 **** #!/bin/bash ! CLASSPATH=`echo jars/*.jar | tr ' ' ':'` ! export CLASSPATH=".:$CLASSPATH" echo "CLASSPATH=$CLASSPATH" --- 1,7 ---- #!/bin/bash ! CLASSPATH=`echo jars/*.jar | tr ' ' ';'` ! export CLASSPATH=".;$CLASSPATH" echo "CLASSPATH=$CLASSPATH" |
From: Artur H. <ko...@us...> - 2001-11-21 13:48:23
|
Update of /cvsroot/geotools/geotools/src/uk/ac/leeds/ccg/ogc In directory usw-pr-cvs1:/tmp/cvs-serv13012/uk/ac/leeds/ccg/ogc Modified Files: RemoteOGC.java WMSLayer.java WebServiceLayer.java Log Message: Added support for creating ImageLayer with InputStream as image data source and full support for downaloding map data from WMS with jprotocols package Index: RemoteOGC.java =================================================================== RCS file: /cvsroot/geotools/geotools/src/uk/ac/leeds/ccg/ogc/RemoteOGC.java,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** RemoteOGC.java 2001/11/20 17:01:45 1.15 --- RemoteOGC.java 2001/11/21 13:48:19 1.16 *************** *** 160,170 **** for (int i=0;i<params.length;i+=2) { if(params[i]==null||params[i+1]==null) continue; ! serverURL.append("&" + URLEncoder.encode(params[i]) ! + "=" + URLEncoder.encode(params[i+1])); } try { if (this.proxy != null) { ! newURL = new URL(this.proxy + "?ProxyURL=" + ! URLEncoder.encode(serverURL.toString())); } else { newURL = new URL(serverURL.toString()); --- 160,172 ---- for (int i=0;i<params.length;i+=2) { if(params[i]==null||params[i+1]==null) continue; ! serverURL.append("&" + params[i] + "=" + params[i+1]); ! // serverURL.append("&" + URLEncoder.encode(params[i]) ! // + "=" + URLEncoder.encode(params[i+1])); } try { if (this.proxy != null) { ! newURL = new URL(this.proxy + "?ProxyURL=" + serverURL.toString()); ! // newURL = new URL(this.proxy + "?ProxyURL=" + ! // URLEncoder.encode(serverURL.toString())); } else { newURL = new URL(serverURL.toString()); *************** *** 195,198 **** --- 197,217 ---- } + public InputStream getImageStream(String[] params) + { + URL url = this.getURL(params); + InputStream instr = null; + try { + if (remoteConnection == null) { + initConnection(); + } // end of if (remoteConnection == null) + + int res = remoteConnection.sendRequest(url); + instr = remoteConnection.getInputStream(); + } catch (IOException e) { + instr = null; + } // end of try-catch + return instr; + } + /* ********* <code>WebMapService</code> proxy methods START *********** */ *************** *** 356,359 **** --- 375,381 ---- * * $Log$ + * Revision 1.16 2001/11/21 13:48:19 kobit + * Added support for creating ImageLayer with InputStream as image data source and full support for downaloding map data from WMS with jprotocols package + * * Revision 1.15 2001/11/20 17:01:45 kobit * Added byte[] getContentData() support Index: WMSLayer.java =================================================================== RCS file: /cvsroot/geotools/geotools/src/uk/ac/leeds/ccg/ogc/WMSLayer.java,v retrieving revision 1.25 retrieving revision 1.26 diff -C2 -d -r1.25 -r1.26 *** WMSLayer.java 2001/11/20 17:01:45 1.25 --- WMSLayer.java 2001/11/21 13:48:19 1.26 *************** *** 30,33 **** --- 30,34 ---- import java.awt.image.*; import java.awt.*; + import java.io.InputStream; /** *************** *** 118,123 **** * particular, extent). */ ! public Layer buildLayer( ! GeoGraphics gg) { // ImageLayer imageLayer; --- 119,123 ---- * particular, extent). */ ! public Layer buildLayer(GeoGraphics gg) { // ImageLayer imageLayer; *************** *** 137,151 **** "EXCEPTIONS",this.exceptionFormat }; ! byte[] imageData = remoteWMS.getImageData(params); ! if (imageData != null) { ! System.out.println("Image data size is: "+imageData.length); ! Image img = Toolkit.getDefaultToolkit().createImage(imageData); ! return new ImageLayer(img, extent); } // end of if (imageData != null) else { return null; } // end of if (imageData != null)else - // Image img = Toolkit.getDefaultToolkit().createImage(remoteWMS.getURL(params)); - // return new ImageLayer(img, extent); // url = this.remoteWMS.getURL(params); // return new ImageLayer(url,extent); --- 137,147 ---- "EXCEPTIONS",this.exceptionFormat }; ! InputStream instr = remoteWMS.getImageStream(params); ! if (instr != null) { ! return new ImageLayer(instr, extent); } // end of if (imageData != null) else { return null; } // end of if (imageData != null)else // url = this.remoteWMS.getURL(params); // return new ImageLayer(url,extent); *************** *** 168,171 **** --- 164,171 ---- * * $Log$ + * Revision 1.26 2001/11/21 13:48:19 kobit + * Added support for creating ImageLayer with InputStream as image data source and full support for downaloding map data from WMS with jprotocols package + * + * * Revision 1.25 2001/11/20 17:01:45 kobit * Added byte[] getContentData() support Index: WebServiceLayer.java =================================================================== RCS file: /cvsroot/geotools/geotools/src/uk/ac/leeds/ccg/ogc/WebServiceLayer.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** WebServiceLayer.java 2001/10/24 09:40:18 1.4 --- WebServiceLayer.java 2001/11/21 13:48:19 1.5 *************** *** 52,57 **** * @param gg Information (mainly extent) required for building a new layer. */ ! public abstract Layer buildLayer( ! GeoGraphics gg); --- 52,56 ---- * @param gg Information (mainly extent) required for building a new layer. */ ! public abstract Layer buildLayer(GeoGraphics gg); *************** *** 173,176 **** --- 172,178 ---- * * $Log$ + * Revision 1.5 2001/11/21 13:48:19 kobit + * Added support for creating ImageLayer with InputStream as image data source and full support for downaloding map data from WMS with jprotocols package + * * Revision 1.4 2001/10/24 09:40:18 kobit * Added LOG cvs keyword to the end of file |