App schema store breaks standard relationship between type names and published
vector layer names
-------------------------------------------------------------------------------------------------
Key: GEOT-3282
URL: http://jira.codehaus.org/browse/GEOT-3282
Project: GeoTools
Issue Type: Bug
Components: core render
Affects Versions: 2.7-M3
Reporter: Andrea Aime
Assignee: Ben Caradoc-Davies
Priority: Critical
Fix For: 2.7-M4
In GeoTools the following code is expected to work:
dataStore.getFeatureSource(dataStore.getFeatureSource(xxx).getSchema().getName())
However the above breaks with app schema data store. In my case I'm extracting
a feature source with "OilSpill" as the type name (there is also a namespace
of course, just omitting it for brevity).
However, when I call getSchema().getName().getLocalPart() I get back
"OilSpillType"
instead. Of course at this point the code relying on that being a valid layer
name breaks.
Given a feature source there must be a way to get back the name used to retrive
it so that this can be done again.
Is this just a plain bug or is the app-schema store breaking the geotools
conventions on purpose, and if so, how to do expect people to correct their
code to follow suit? In particular, how do you expect someone having a
FeatureSource to be able to store a key and retrieve it again in the future?
--
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
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
Spend less time writing and rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel