Implementation for unimplemented function getFeatureSource(Name) in
WFS_1_1_0_DataStore.java
--------------------------------------------------------------------------------------------
Key: GEOT-2348
URL: http://jira.codehaus.org/browse/GEOT-2348
Project: GeoTools
Issue Type: Improvement
Components: data wfs
Affects Versions: 2.6-M2
Environment: Windows XP, Java 1.5.0_16,
Reporter: Russell Petty
Attachments: WFS_1_1_0_DataStore.patch
The method getFeatureSource(Name) in the class WFS_1_1_0_DataStore.java
currently throws an UnsupportedOperationException. (With the comment "Not yet
implemented") An attached patch implements this function, and is based on
similar logic used in the method getSchema(Name name) which is also in the same
class.
The getFeatureSource method is called when trying to create an
AppSchemaDataAccess, with a WFS datastore. The stack trace that occurs without
this patch applied is:
java.lang.UnsupportedOperationException: Not yet implemented
at
org.geotools.data.wfs.v1_1_0.WFS_1_1_0_DataStore.getFeatureSource(WFS_1_1_0_DataStore.java:503)
at
org.geotools.data.complex.config.AppSchemaDataAccessConfigurator.getFeatureSource(AppSchemaDataAccessConfigurator.java:354)
at
org.geotools.data.complex.config.AppSchemaDataAccessConfigurator.createFeatureTypeMappings(AppSchemaDataAccessConfigurator.java:173)
at
org.geotools.data.complex.config.AppSchemaDataAccessConfigurator.buildMappings(AppSchemaDataAccessConfigurator.java:160)
at
org.geotools.data.complex.config.AppSchemaDataAccessConfigurator.buildMappings(AppSchemaDataAccessConfigurator.java:134)
at
org.geotools.data.complex.AppSchemaDataAccessFactory.createDataStore(AppSchemaDataAccessFactory.java:74)
at
org.geotools.data.DataAccessFinder.getDataStore(DataAccessFinder.java:129)
at
org.geotools.data.DataAccessFinder.getDataStore(DataAccessFinder.java:95)
at
org.geotools.data.complex.GeoSciMLTest.testDataStore(GeoSciMLTest.java:308)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel