svn - r34271 - in trunk: demo/example/src/main/java/org/geotools/demo spike/geometry

1 message Options
Embed this post
Permalink
svn_geotools

svn - r34271 - in trunk: demo/example/src/main/java/org/geotools/demo spike/geometry

Reply Threaded More More options
Print post
Permalink
Author: jive
Date: 2009-10-28 05:02:16 -0400 (Wed, 28 Oct 2009)
New Revision: 34271

Modified:
   trunk/demo/example/src/main/java/org/geotools/demo/ImageLab.java
   trunk/spike/geometry/pom.xml
Log:
smaller comments are better for printing

Modified: trunk/demo/example/src/main/java/org/geotools/demo/ImageLab.java
===================================================================
--- trunk/demo/example/src/main/java/org/geotools/demo/ImageLab.java 2009-10-28 09:00:05 UTC (rev 34270)
+++ trunk/demo/example/src/main/java/org/geotools/demo/ImageLab.java 2009-10-28 09:02:16 UTC (rev 34271)
@@ -104,42 +104,28 @@
      *            the Shapefile
      */
     private void displayLayers(File rasterFile, File shpFile) throws Exception {
-        /*
-         * Use GridFormatFinder to obtain a grid coverage reader
-         */
-        AbstractGridFormat format = GridFormatFinder.findFormat( rasterFile );        
+        // AbstractGridFormat format = GridFormatFinder.findFormat( rasterFile );        
         reader = format.getReader(rasterFile);
 
-        /*
-         * Initially display the raster in greyscale using the
-         * data from the first image band
-         */
+        // Initially display the raster in greyscale using the
+        // data from the first image band
         Style rasterStyle = createGreyscaleStyle(1);
 
-        /*
-         * Connect to the shapefile
-         */
+        // Connect to the shapefile
         FileDataStore dataStore = FileDataStoreFinder.getDataStore(shpFile);
         FeatureSource<SimpleFeatureType, SimpleFeature> shapefileSource = dataStore
                 .getFeatureSource();
 
-        /*
-         * Create a basic style with yellow lines and no fill
-         */
+        // Create a basic style with yellow lines and no fill
         Style shpStyle = SLD.createPolygonStyle(Color.YELLOW, null, 0.0f);
 
-        /*
-         * Set up a MapContext with the two layers
-         */
+        // Set up a MapContext with the two layers
         final MapContext map = new DefaultMapContext();
         map.setTitle("ImageLab");
         map.addLayer(reader, rasterStyle);
         map.addLayer(shapefileSource, shpStyle);
 
-        /*
-         * Create a JMapFrame with a menu to choose the display style for the
-         * GeoTIFF image
-         */
+        // Create a JMapFrame with a menu to choose the display style for the
         frame = new JMapFrame(map);
         frame.setSize(800, 600);
         frame.enableStatusBar(true);
@@ -170,10 +156,8 @@
                 }
            }
         });
-        /*
-         * Finally display the map frame.
-         * When it is closed the app will exit.
-         */
+        // Finally display the map frame.
+        // When it is closed the app will exit.
         frame.setVisible(true);
     }
     

Modified: trunk/spike/geometry/pom.xml
===================================================================
--- trunk/spike/geometry/pom.xml 2009-10-28 09:00:05 UTC (rev 34270)
+++ trunk/spike/geometry/pom.xml 2009-10-28 09:02:16 UTC (rev 34271)
@@ -6,7 +6,7 @@
   <modelVersion>4.0.0</modelVersion>
 
   <groupId>org.osgeo</groupId>
-  <artifactId>geometry</artifactId>
+  <artifactId>geometry-trunk</artifactId>
   <packaging>jar</packaging>
   <version>0.1-SNAPSHOT</version>
 


------------------------------------------------------------------------------
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