Java Doc for FeatureSource.java in  » GIS » GeoTools-2.4.1 » org » geotools » data » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » GIS » GeoTools 2.4.1 » org.geotools.data 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.geotools.data.FeatureSource

All known Subclasses:   org.geotools.data.store.ContentFeatureSource,  org.geotools.data.view.DefaultView,  org.geotools.data.store.AbstractFeatureSource2,  org.geotools.data.AbstractFeatureSource,  org.geotools.data.postgis.WrappingPostgisFeatureSource,  org.geotools.caching.impl.IndexView,
FeatureSource
public interface FeatureSource (Code)
Highlevel API for Features from a specific location.

Individual Shapefiles, databases tables , etc. are referenced through this interface. Compare and constrast with DataStore.

Differences from DataStore:

  • This is a prototype DataSource replacement, the Transaction methods have been moved to an external object, and the locking api has been intergrated.
  • FeatureCollection has been replaced with FeatureResult as we do not wish to indicate that results can be stored in memory.
  • FeatureSource has been split into three interfaces, the intention is to use the instanceof opperator to check capabilities rather than the previous DataSourceMetaData.

author:
   Jody Garnett
author:
   Ray Gallagher
author:
   Rob Hranac, TOPP
author:
   Chris Holmes, TOPP
version:
   $Id: FeatureSource.java 26489 2007-08-08 15:36:02Z aaime $




Method Summary
 voidaddFeatureListener(FeatureListener listener)
     Adds a listener to the list that's notified each time a change to the FeatureStore occurs.
 EnvelopegetBounds()
     Gets the bounding box of this datasource.
 EnvelopegetBounds(Query query)
     Gets the bounding box of the features that would be returned by this query.

To retrieve the bounds of the DataSource please use getBounds( Query.ALL ).

This method is needed if we are to stream features to a gml out, since a FeatureCollection must have a boundedBy element.

If getBounds(Query) returns null due to expense consider using getFeatures(Query).getBounds() as a an alternative.


Parameters:
  query - Contains the Filter and MaxFeatures to find the bounds for.
 intgetCount(Query query)
     Gets the number of the features that would be returned by this query.

If getBounds(Query) returns -1 due to expense consider using getFeatures(Query).getCount() as a an alternative.


Parameters:
  query - Contains the Filter and MaxFeatures to find the bounds for.
 DataStoregetDataStore()
     Access to the DataStore implementing this FeatureStore.
 FeatureCollectiongetFeatures(Query query)
     Loads features from the datasource into the returned FeatureResults, based on the passed query.
Parameters:
  query - a datasource query object.
 FeatureCollectiongetFeatures(Filter filter)
     Loads features from the datasource into the returned FeatureResults, based on the passed filter.
Parameters:
  filter - An OpenGIS filter; specifies which features to retrieve.null is not allowed, use Filter.INCLUDE instead.
 FeatureCollectiongetFeatures()
     Loads all features from the datasource into the return FeatureResults.

Filter.INCLUDE can also be used to get all features.

 FeatureTypegetSchema()
     Retrieves the featureType that features extracted from this datasource will be created with.

The schema returned is the LCD supported by all available Features.

public  SetgetSupportedHints()
     Returns the set of hints this FeatureSource is able to support.

Hints are to be specified in the Query , for each data access where they may be required.
Depending on the actual value provide by the user, the FeatureSource may decide not to honor the hint.

 voidremoveFeatureListener(FeatureListener listener)
     Removes a listener from the list that's notified each time a change to the FeatureStore occurs.



Method Detail
addFeatureListener
void addFeatureListener(FeatureListener listener)(Code)
Adds a listener to the list that's notified each time a change to the FeatureStore occurs.
Parameters:
  listener - FeatureListener



getBounds
Envelope getBounds() throws IOException(Code)
Gets the bounding box of this datasource.

With getBounds(Query) this becomes a convenience method for getBounds(Query.ALL), that is the bounds for all features contained here.

If getBounds() returns null due to expense consider using getFeatures().getBounds() as a an alternative.

The bounding box of the datasource or null if unknown and tooexpensive for the method to calculate.
throws:
  IOException - if there are errors getting the bounding box.



getBounds
Envelope getBounds(Query query) throws IOException(Code)
Gets the bounding box of the features that would be returned by this query.

To retrieve the bounds of the DataSource please use getBounds( Query.ALL ).

This method is needed if we are to stream features to a gml out, since a FeatureCollection must have a boundedBy element.

If getBounds(Query) returns null due to expense consider using getFeatures(Query).getBounds() as a an alternative.


Parameters:
  query - Contains the Filter and MaxFeatures to find the bounds for. The bounding box of the datasource or null if unknown and tooexpensive for the method to calculate or any errors occur.
throws:
  IOException - DOCUMENT ME!



getCount
int getCount(Query query) throws IOException(Code)
Gets the number of the features that would be returned by this query.

If getBounds(Query) returns -1 due to expense consider using getFeatures(Query).getCount() as a an alternative.


Parameters:
  query - Contains the Filter and MaxFeatures to find the bounds for. The number of Features provided by the Query or -1if count is too expensive to calculate or any errors or occur.
throws:
  IOException - if there are errors getting the count



getDataStore
DataStore getDataStore()(Code)
Access to the DataStore implementing this FeatureStore.

You may use this to access such as namespace provided by DataStore.

DataStore implementing this FeatureStore



getFeatures
FeatureCollection getFeatures(Query query) throws IOException(Code)
Loads features from the datasource into the returned FeatureResults, based on the passed query.
Parameters:
  query - a datasource query object. It encapsulates requestedinformation, such as typeName, maxFeatures and filter. Collection The collection to put the features into.
throws:
  IOException - For all data source errors.
See Also:   Query



getFeatures
FeatureCollection getFeatures(Filter filter) throws IOException(Code)
Loads features from the datasource into the returned FeatureResults, based on the passed filter.
Parameters:
  filter - An OpenGIS filter; specifies which features to retrieve.null is not allowed, use Filter.INCLUDE instead. Collection The collection to put the features into.
throws:
  IOException - For all data source errors.



getFeatures
FeatureCollection getFeatures() throws IOException(Code)
Loads all features from the datasource into the return FeatureResults.

Filter.INCLUDE can also be used to get all features. Calling this function is equivalent to using Query.ALL

Collection The collection to put the features into.
throws:
  IOException - For all data source errors.



getSchema
FeatureType getSchema()(Code)
Retrieves the featureType that features extracted from this datasource will be created with.

The schema returned is the LCD supported by all available Features. In the common case of shapfiles and database table this schema will match that of every feature available. In the degenerate GML case this will simply reflect the gml:AbstractFeatureType.

the schema of features created by this datasource.



getSupportedHints
public Set getSupportedHints()(Code)
Returns the set of hints this FeatureSource is able to support.

Hints are to be specified in the Query , for each data access where they may be required.
Depending on the actual value provide by the user, the FeatureSource may decide not to honor the hint. a set of RenderingHints.Key objects (eventually empty, never null).




removeFeatureListener
void removeFeatureListener(FeatureListener listener)(Code)
Removes a listener from the list that's notified each time a change to the FeatureStore occurs.
Parameters:
  listener - FeatureListener



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.