The following is a list of small demo programs in the geotools svn , in the gt/demo directory. Some demos use data in the sample-data module in gt/module/sample-data and some require the latest unreleased geotools code in svn (referred to below as trunk).
These demos were not included in the 2.0rc1 release, but some are attachment files on this wiki.
Demos in gt/demo/gui
| Name | Description | Release Tested With |
|---|---|---|
| SpearfishSample | Reads, styles, and displays shapefiles and a grid DEM. Sample code for the Maps and styles and described in How to run the Spearfish demo. | 2.0rc1 (and arcgrid-2.1.x.jar from trunk) |
| SpearfishPostGIS | SpearfishSample, modified for use with PostGIS data. See How to use a PostGISDataStore | 2.0rc1 |
| ZoomPaneDemo | Demonstrates the use of a ZoomPane to draw a triangle. | 2.0rc1 |
| MapViewer | Displays shapefiles using a MapPane and J2D Renderer. | 2.0rc1 |
| MapLegendViewer | Displays shapefiles on a map with a legend. | 2.0rc1 (and legend-2.1.x.jar from trunk) |
| MapToolViewer | A simple shapefile viewer with pan and zoom tools. | 2.0rc1 |
| FloatRasterDemo | A simple demo computing a WritableRaster and displaying it. | Could not get running |
| ArcGridReader | Loads and symbolizes a DEM from an ascii export file generated by GRASS, using the new GridCoverageExchange interface. | trunk |
Demos in gt/demo/referencing
| Name | Description | Release Tested With |
|---|---|---|
| TransformationConsole | Converts lat/long to Mercator coordinates. | 2.0rc1 |
| TransformData | Transforms (re-projects) the geometries in a shapefile from the source coordinate reference system (CRS) to a target CRS. | 2.0rc1 |
Demos in gt/demo/data
| Name | Description | Release Tested With |
|---|---|---|
| ShapeReader | Opens a shapefile, gets the feature type (attributes), read the features and output their contents. Described in the Data Reading. | 2.0rc1 |
| ShapeReaderWriter | Opens a shapefile and outputs a subset to a new shapefile, based on an attribute filter. Described in the Data Writing. | 2.0rc1 |
Demos in gt/demo/property
| Name | Description | Release Tested With |
|---|---|---|
| PropertyDataStore | Code for the PropertyDataStore created in the 0 Introducing PropertyDataStore. | 2.0rc1 |
Ok, thanks Rueben Schulz, i found the link.
But would it be a good suggestion to create a new page for newbie?
I think we really need some VERY VERY BASIC tutorials more then some UML illustration tutorials....
Unfortunately, geotools developers do not have much time to write tutorials. We still have many areas of the code base without tutorial, besides missing tutorials for beginers.
My only suggestion is to make comments (give us feedback) about areas where the tutorials are confusing or missing. But, the wiki is open to everyone to modify, so you can start a newbie page if you have time. See [How to get started using Geotools2] for more information.
Hi I have a question for Marcelo. I am getting the same compile problem that you posted about when I try and run geoserver. Did you get the problem resolved and can you point me in the right direction.
Thanks,
Matt.
Hello everyone,under gt/demo/gui,I download MapLegendViewer.java,but when I compile it, there appear the following errors:
1.cannot found: import org.geotools.gui.swing.Legend
2.package org.geotools.gui.swing.sldeditor does not exist
where can I find the two class library? thanks for any answers.
About demo code:MapToolViewer.java,I compile and run it,in the ToolMenu, there are three tools:Zoom in,Zoom ou,and Pan, but the three tools' action are not good when draging,there is no draging box appearing,and the motion of display is not moving with the pan action, the effect is not good, can someone modify the demo code to improve the effet of Tool?
Where to find the geoTools SVN ?
I cannot find it...can you post it out here?
I am a geoTools newbie
I am trying to find some tutorials that teach us how to use geoTools steps by steps...
And i don't think the tutorial provide by the original one is suitable for me .
Can me create a newbie page here ?
thanks