|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.demo.FirstProject
public class FirstProject
The example code for the "FirstProject" in the GeoTools wiki.
This code matches these examples:
The code illustrates how to open a shapefile and collect data about the features contained within it.
Constructor Summary | |
---|---|
FirstProject()
|
Method Summary | |
---|---|
static void |
main(java.lang.String[] args)
Opens a shapefile provided by the user (that should contain line or polygon features), then iterates over the features within it to calculate the sum of their line or boundary length. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FirstProject()
Method Detail |
---|
public static void main(java.lang.String[] args) throws java.lang.Exception
Note: If specifying the shapefile at the command line, don't forget the quotes around your path if there are spaces!
The code for this method illustrates:
DataStore
object
args
- Optionally, the path and name of the shapefile
java.lang.Exception
- if the shapefile cannot be opened
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |