|
|
|
svn_geotools
|
Author: mbedward
Date: 2009-10-26 23:15:40 -0400 (Mon, 26 Oct 2009) New Revision: 34257 Modified: trunk/spike/web/sphinx/source/examples/crslab.rst trunk/spike/web/sphinx/source/examples/csv2shp.rst trunk/spike/web/sphinx/source/examples/imagelab.rst trunk/spike/web/sphinx/source/examples/postgislab.rst trunk/spike/web/sphinx/source/examples/querylab.rst trunk/spike/web/sphinx/source/examples/selectionlab.rst trunk/spike/web/sphinx/source/examples/stylelab.rst trunk/spike/web/sphinx/source/quickstart.rst Log: corrected the dependency section in all examples Modified: trunk/spike/web/sphinx/source/examples/crslab.rst =================================================================== --- trunk/spike/web/sphinx/source/examples/crslab.rst 2009-10-27 01:29:34 UTC (rev 34256) +++ trunk/spike/web/sphinx/source/examples/crslab.rst 2009-10-27 03:15:40 UTC (rev 34257) @@ -12,30 +12,35 @@ Please ensure your pom.xml includes the following:: <dependencies> - <dependency> - <groupId>org.geotools</groupId> - <artifactId>gt-swing</artifactId> - <version>${geotools.version}</version> - <!-- For this module we explicitly exclude some of its own --> - <!-- dependencies from being downloaded because they are --> - <!-- big and we don't need them --> - <exclusions> - <exclusion> - <groupId>org.apache.xmlgraphics</groupId> - <artifactId>batik-transcoder</artifactId> - </exclusion> - </exclusions> - </dependency> - <dependency> - <groupId>org.geotools</groupId> - <artifactId>gt-shapefile</artifactId> - <version>${geotools.version}</version> - </dependency> - <dependency> - <groupId>org.geotools</groupId> - <artifactId>gt-epsg-hsql</artifactId> - <version>${geotools.version}</version> - </dependency> + <dependency> + <groupId>org.geotools</groupId> + <artifactId>gt-shapefile</artifactId> + <version>${geotools.version}</version> + </dependency> + <dependency> + <groupId>org.geotools</groupId> + <artifactId>gt-epsg-hsql</artifactId> + <version>${geotools.version}</version> + </dependency> + <dependency> + <groupId>org.geotools</groupId> + <artifactId>gt-swing</artifactId> + <version>${geotools.version}</version> + </dependency> + <dependency> + <groupId>org.geotools</groupId> + <artifactId>gt-render</artifactId> + <version>${geotools.version}</version> + <!-- For this module we explicitly exclude some of its own --> + <!-- dependencies from being downloaded because they are --> + <!-- big and we don't need them --> + <exclusions> + <exclusion> + <groupId>org.apache.xmlgraphics</groupId> + <artifactId>batik-transcoder</artifactId> + </exclusion> + </exclusions> + </dependency> </dependencies> Example Modified: trunk/spike/web/sphinx/source/examples/csv2shp.rst =================================================================== --- trunk/spike/web/sphinx/source/examples/csv2shp.rst 2009-10-27 01:29:34 UTC (rev 34256) +++ trunk/spike/web/sphinx/source/examples/csv2shp.rst 2009-10-27 03:15:40 UTC (rev 34257) @@ -30,12 +30,6 @@ <dependencies> <dependency> - <groupId>junit</groupId> - <artifactId>junit</artifactId> - <version>3.8.1</version> - <scope>test</scope> - </dependency> - <dependency> <groupId>org.geotools</groupId> <artifactId>gt-shapefile</artifactId> <version>${geotools.version}</version> Modified: trunk/spike/web/sphinx/source/examples/imagelab.rst =================================================================== --- trunk/spike/web/sphinx/source/examples/imagelab.rst 2009-10-27 01:29:34 UTC (rev 34256) +++ trunk/spike/web/sphinx/source/examples/imagelab.rst 2009-10-27 03:15:40 UTC (rev 34257) @@ -13,11 +13,6 @@ <dependencies> <dependency> <groupId>org.geotools</groupId> - <artifactId>gt-main</artifactId> - <version>${geotools.version}</version> - </dependency> - <dependency> - <groupId>org.geotools</groupId> <artifactId>gt-shapefile</artifactId> <version>${geotools.version}</version> </dependency> @@ -40,14 +35,19 @@ <groupId>org.geotools</groupId> <artifactId>gt-swing</artifactId> <version>${geotools.version}</version> + </dependency> + <dependency> + <groupId>org.geotools</groupId> + <artifactId>gt-render</artifactId> + <version>${geotools.version}</version> <!-- For this module we explicitly exclude some of its own --> <!-- dependencies from being downloaded because they are --> <!-- big and we don't need them --> <exclusions> - <exclusion> - <groupId>org.apache.xmlgraphics</groupId> - <artifactId>batik-transcoder</artifactId> - </exclusion> + <exclusion> + <groupId>org.apache.xmlgraphics</groupId> + <artifactId>batik-transcoder</artifactId> + </exclusion> </exclusions> </dependency> </dependencies> Modified: trunk/spike/web/sphinx/source/examples/postgislab.rst =================================================================== --- trunk/spike/web/sphinx/source/examples/postgislab.rst 2009-10-27 01:29:34 UTC (rev 34256) +++ trunk/spike/web/sphinx/source/examples/postgislab.rst 2009-10-27 03:15:40 UTC (rev 34257) @@ -20,30 +20,35 @@ We are going to add another couple dependencies here:: <dependencies> - <dependency> - <groupId>org.geotools</groupId> - <artifactId>gt-postgis</artifactId> - <version>{gt-version}</version> - </dependency> - <dependency> - <groupId>org.geotools</groupId> - <artifactId>gt-epsg-hsql</artifactId> - <version>{gt-version}</version> - </dependency> - <dependency> - <groupId>org.geotools</groupId> - <artifactId>gt-swing</artifactId> - <version>{gt-version}</version> - <!-- For this module we explicitly exclude some of its own --> - <!-- dependencies from being downloaded because they are --> - <!-- big and we don't need them --> - <exclusions> - <exclusion> - <groupId>org.apache.xmlgraphics</groupId> - <artifactId>batik-transcoder</artifactId> - </exclusion> - </exclusions> - </dependency> + <dependency> + <groupId>org.geotools</groupId> + <artifactId>gt-postgis</artifactId> + <version>{gt-version}</version> + </dependency> + <dependency> + <groupId>org.geotools</groupId> + <artifactId>gt-epsg-hsql</artifactId> + <version>{gt-version}</version> + </dependency> + <dependency> + <groupId>org.geotools</groupId> + <artifactId>gt-swing</artifactId> + <version>${geotools.version}</version> + </dependency> + <dependency> + <groupId>org.geotools</groupId> + <artifactId>gt-render</artifactId> + <version>${geotools.version}</version> + <!-- For this module we explicitly exclude some of its own --> + <!-- dependencies from being downloaded because they are --> + <!-- big and we don't need them --> + <exclusions> + <exclusion> + <groupId>org.apache.xmlgraphics</groupId> + <artifactId>batik-transcoder</artifactId> + </exclusion> + </exclusions> + </dependency> </dependencies> Please add these dependencies to your pom.xml and update your IDE as required. Modified: trunk/spike/web/sphinx/source/examples/querylab.rst =================================================================== --- trunk/spike/web/sphinx/source/examples/querylab.rst 2009-10-27 01:29:34 UTC (rev 34256) +++ trunk/spike/web/sphinx/source/examples/querylab.rst 2009-10-27 03:15:40 UTC (rev 34257) @@ -29,6 +29,11 @@ <groupId>org.geotools</groupId> <artifactId>gt-swing</artifactId> <version>${geotools.version}</version> + </dependency> + <dependency> + <groupId>org.geotools</groupId> + <artifactId>gt-render</artifactId> + <version>${geotools.version}</version> <!-- For this module we explicitly exclude some of its own --> <!-- dependencies from being downloaded because they are --> <!-- big and we don't need them --> Modified: trunk/spike/web/sphinx/source/examples/selectionlab.rst =================================================================== --- trunk/spike/web/sphinx/source/examples/selectionlab.rst 2009-10-27 01:29:34 UTC (rev 34256) +++ trunk/spike/web/sphinx/source/examples/selectionlab.rst 2009-10-27 03:15:40 UTC (rev 34257) @@ -19,30 +19,35 @@ Please ensure your pom.xml includes the following:: <dependencies> - <dependency> - <groupId>org.geotools</groupId> - <artifactId>gt-swing</artifactId> - <version>${geotools.version}</version> - <!-- For this module we explicitly exclude some of its own --> - <!-- dependencies from being downloaded because they are --> - <!-- big and we don't need them --> - <exclusions> - <exclusion> - <groupId>org.apache.xmlgraphics</groupId> - <artifactId>batik-transcoder</artifactId> - </exclusion> - </exclusions> - </dependency> - <dependency> - <groupId>org.geotools</groupId> - <artifactId>gt-shapefile</artifactId> - <version>${geotools.version}</version> - </dependency> - <dependency> - <groupId>org.geotools</groupId> - <artifactId>gt-epsg-hsql</artifactId> - <version>${geotools.version}</version> - </dependency> + <dependency> + <groupId>org.geotools</groupId> + <artifactId>gt-shapefile</artifactId> + <version>${geotools.version}</version> + </dependency> + <dependency> + <groupId>org.geotools</groupId> + <artifactId>gt-epsg-hsql</artifactId> + <version>${geotools.version}</version> + </dependency> + <dependency> + <groupId>org.geotools</groupId> + <artifactId>gt-swing</artifactId> + <version>${geotools.version}</version> + </dependency> + <dependency> + <groupId>org.geotools</groupId> + <artifactId>gt-render</artifactId> + <version>${geotools.version}</version> + <!-- For this module we explicitly exclude some of its own --> + <!-- dependencies from being downloaded because they are --> + <!-- big and we don't need them --> + <exclusions> + <exclusion> + <groupId>org.apache.xmlgraphics</groupId> + <artifactId>batik-transcoder</artifactId> + </exclusion> + </exclusions> + </dependency> </dependencies> Example Modified: trunk/spike/web/sphinx/source/examples/stylelab.rst =================================================================== --- trunk/spike/web/sphinx/source/examples/stylelab.rst 2009-10-27 01:29:34 UTC (rev 34256) +++ trunk/spike/web/sphinx/source/examples/stylelab.rst 2009-10-27 03:15:40 UTC (rev 34257) @@ -13,31 +13,31 @@ <dependencies> <dependency> <groupId>org.geotools</groupId> - <artifactId>gt-main</artifactId> + <artifactId>gt-shapefile</artifactId> <version>${geotools.version}</version> </dependency> <dependency> <groupId>org.geotools</groupId> - <artifactId>gt-shapefile</artifactId> + <artifactId>gt-epsg-hsql</artifactId> <version>${geotools.version}</version> </dependency> <dependency> <groupId>org.geotools</groupId> - <artifactId>gt-epsg-hsql</artifactId> + <artifactId>gt-swing</artifactId> <version>${geotools.version}</version> </dependency> <dependency> <groupId>org.geotools</groupId> - <artifactId>gt-swing</artifactId> + <artifactId>gt-render</artifactId> <version>${geotools.version}</version> <!-- For this module we explicitly exclude some of its own --> <!-- dependencies from being downloaded because they are --> <!-- big and we don't need them --> <exclusions> - <exclusion> - <groupId>org.apache.xmlgraphics</groupId> - <artifactId>batik-transcoder</artifactId> - </exclusion> + <exclusion> + <groupId>org.apache.xmlgraphics</groupId> + <artifactId>batik-transcoder</artifactId> + </exclusion> </exclusions> </dependency> </dependencies> Modified: trunk/spike/web/sphinx/source/quickstart.rst =================================================================== --- trunk/spike/web/sphinx/source/quickstart.rst 2009-10-27 01:29:34 UTC (rev 34256) +++ trunk/spike/web/sphinx/source/quickstart.rst 2009-10-27 03:15:40 UTC (rev 34257) @@ -193,38 +193,38 @@ .. sourcecode:: java - package org.geotools.demo.example; + package org.geotools.demo.example; - /** - * Hello world! - * - */ - public class App - { - public static void main( String[] args ) - { - System.out.println( "Hello World!" ); - } - } + /** + * Hello world! + * + */ + public class App + { + public static void main( String[] args ) + { + System.out.println( "Hello World!" ); + } + } And add some GeoTools code to it: .. sourcecode:: java - package org.geotools.demo.example; + package org.geotools.demo.example; - import org.geotools.factory.GeoTools; - /** - * Hello world! - * - */ - public class App - { - public static void main( String[] args ) - { - System.out.println( "Hello GeoTools:" + GeoTools.getVersion() ); - } - } + import org.geotools.factory.GeoTools; + /** + * Hello world! + * + */ + public class App + { + public static void main( String[] args ) + { + System.out.println( "Hello GeoTools:" + GeoTools.getVersion() ); + } + } You can build and run the application from within your IDE or from the command line. @@ -294,38 +294,40 @@ Here are the plugins we will be using to to read a shapefile. -* **gt2-shape** used to reads file.shp, file.dbf, file.shx etc... -* **gt2-epsg-hsql** used to read file.prj (map projection) +* **gt-shapefile** used to reads file.shp, file.dbf, file.shx etc... +* **gt-epsg-hsql** used to read file.prj (map projection) +* **gt-swing** a collection of Swing GUI classes for GeoTools +* **gt-render** classes to draw map features .. sourcecode:: xml - <dependency> - <groupId>org.geotools</groupId> - <artifactId>gt-main</artifactId> - <version>${geotools.version}</version> - </dependency> <dependency> - <groupId>org.geotools</groupId> - <artifactId>gt-shapefile</artifactId> - <version>${geotools.version}</version> + <groupId>org.geotools</groupId> + <artifactId>gt-shapefile</artifactId> + <version>${geotools.version}</version> </dependency> <dependency> - <groupId>org.geotools</groupId> - <artifactId>gt-epsg-hsql</artifactId> - <version>${geotools.version}</version> + <groupId>org.geotools</groupId> + <artifactId>gt-epsg-hsql</artifactId> + <version>${geotools.version}</version> </dependency> <dependency> - <groupId>org.geotools</groupId> - <artifactId>gt-swing</artifactId> - <version>${geotools.version}</version> - <!-- For this module we explicitly exclude some of its own --> - <!-- dependencies from being downloaded because they are --> - <!-- big and we don't need them --> - <exclusions> - <exclusion> - <groupId>org.apache.xmlgraphics</groupId> - <artifactId>batik-transcoder</artifactId> - </exclusion> + <groupId>org.geotools</groupId> + <artifactId>gt-swing</artifactId> + <version>${geotools.version}</version> + </dependency> + <dependency> + <groupId>org.geotools</groupId> + <artifactId>gt-render</artifactId> + <version>${geotools.version}</version> + <!-- For this module we explicitly exclude some of its own --> + <!-- dependencies from being downloaded because they are --> + <!-- big and we don't need them --> + <exclusions> + <exclusion> + <groupId>org.apache.xmlgraphics</groupId> + <artifactId>batik-transcoder</artifactId> + </exclusion> </exclusions> </dependency> ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ GeoTools-commits mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/geotools-commits |
||||||||||||||||
| Free Embeddable Forum Powered by Nabble | Help |